Skip to content

Instantly share code, notes, and snippets.

@thegengen
Created February 14, 2013 17:18
Show Gist options
  • Save thegengen/4954405 to your computer and use it in GitHub Desktop.
Save thegengen/4954405 to your computer and use it in GitHub Desktop.
easily select method contents in vim
" === Selecting methods ===
" MAP: vim, vam to visually select, but almost anything goes. Examples:
" cim: change method contents
" dam: delete whole method
" ,cim: comment out method contents
vmap im <Esc>[mjV]Mk
vmap am <Esc>[mV]M
omap im :normal vim<CR>
omap am :normal vam<CR>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment