]> git.madduck.net Git - etc/vim.git/blobdiff - .vimrc

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

Update vcsh gitignore file
[etc/vim.git] / .vimrc
diff --git a/.vimrc b/.vimrc
index 656285a2d85d7954f29609361bc072bd020b8c7b..135b2a9080a481320be42f6d17400fe2d8bd915a 100644 (file)
--- a/.vimrc
+++ b/.vimrc
@@ -1449,7 +1449,6 @@ let g:netrw_home="$VARDIR/vim"
 
 filetype plugin indent on
 syntax on
-colorscheme madduck
 
 " leave the w mark whenever a file is written
 autocmd BufWrite * normal mw
@@ -1490,18 +1489,17 @@ map <Leader>ft :%s,⇝·*,      ,g<CR>:nohlsearch<CR>``
 " replace fake spaces with real ones
 map <Leader>fs :%s,·, ,g<CR>:nohlsearch<CR>``
 
-map <Leader>sy :echo synIDattr(synID(line("."), col("."), 1), "name")<CR>
+function WhatHighlight()
+  echon 'hi<' . synIDattr(synID(line('.'),col('.'),1),'name') . '> '
+  echon 'trans<' . synIDattr(synID(line('.'),col('.'),0),'name') . '> '
+  echon 'lo<' . synIDattr(synIDtrans(synID(line('.'),col('.'),1)),'name') . '>'
+endfunction
 
-map <Leader>/ :nohlsearch<CR>
-
-omap [{ :normal {jj<CR>
-nmap [{ :normal {jj<CR>
-omap ]} :normal }kk<CR>
-nmap ]} :normal }kk<CR>
+map <Leader>sy :call WhatHighlight()<CR>
 
-iab => ➬
+map <Leader>/ :nohlsearch<CR>
 
-let g:airline_theme='minimalist'
+iab <Leader>→ ➬
 
 try
   execute pathogen#infect()
@@ -1509,8 +1507,16 @@ catch
   "echo "Pathogen not installed"
 endtry
 
+set background=light
+let g:artesanal_dimmed = 1
+let g:artesanal_transparent = 1
+colorscheme artesanal
+
 let g:is_posix = 1
 
+let g:ycm_add_preview_to_completeopt="popup"
+let g:ycm_autoclose_preview_window_after_completion = 1
+
 let g:UltiSnipsExpandTrigger = "<leader><tab>"
 let g:UltiSnipsJumpForwardTrigger = "<c-]>"
 let g:UltiSnipsJumpBackwardTrigger = "<c-[>"