Created
February 14, 2013 17:18
-
-
Save thegengen/4954405 to your computer and use it in GitHub Desktop.
easily select method contents in vim
This file contains hidden or 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
" === 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