Created
May 5, 2014 21:35
-
-
Save charlesthomas/8c4e3f14ce9f09c1048d to your computer and use it in GitHub Desktop.
Comment / Uncomment line in vim w/ctrl+c / ctrl + u
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" Comment / Uncomment line in vim w/ctrl+c / ctrl + u | |
nmap <C-c> V: s/\v^(\s*)/\1# /g<CR>:nohls<CR> | |
vmap <C-c> : s/\v^(\s*)/\1# /g<CR>:nohls<CR> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment