]> 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:

enable editorconfig
[etc/vim.git] / .vimrc
diff --git a/.vimrc b/.vimrc
index 656285a2d85d7954f29609361bc072bd020b8c7b..3ea3e40da710de9055c58d4916126a72066bba63 100644 (file)
--- a/.vimrc
+++ b/.vimrc
@@ -1490,18 +1490,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()
@@ -1511,6 +1510,9 @@ endtry
 
 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-[>"