Commits

Nicola Paolucci committed 89bb428

[vim] gcgc shortcut to capitalize line

  • Participants
  • Parent commits c115e54

Comments (0)

Files changed (1)

 "git grep the current word using K (mnemonic Kurrent)
 nnoremap <silent> K :GitGrep <cword><CR>
 " }}}
+" capitalize shortcuts {{{
+" In visual-mode, capitalize all words in selection
+nmap gcgc 0gUlV:s/\s\(\a\)/ \U\1/p<cr>:set nohlsearch<CR>
+" }}}
 "}}}
 " Conditional configuration (macvim,gui,etc)"{{{
 " ==================================
   au FileType gitconfig setlocal sw=4 sts=4 ts=4 et tw=200 sta
   au FileType jsp setlocal sw=4 sts=4 ts=4 noet tw=200 sta
   au FileType java setlocal sw=4 sts=4 ts=4 noet tw=200 sta
+  au FileType go setlocal sw=4 sts=4 ts=4 noet tw=200 sta
   "vim should not break lines
   au FileType vim setlocal tw=0 wm=0
   " autocorrect markdown