Skip to content

Instantly share code, notes, and snippets.

@therubymug
Created October 23, 2008 04:27
Show Gist options
  • Save therubymug/18916 to your computer and use it in GitHub Desktop.
Save therubymug/18916 to your computer and use it in GitHub Desktop.
" Simple Ctrl-c mapping for # commenting in vim
" # comments # Brought to you by the_mug
:nmap <C-c> <ESC>^I#<ESC>
:imap <C-c> <ESC>^I#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment