Created
August 19, 2013 16:07
-
-
Save gnapse/6270828 to your computer and use it in GitHub Desktop.
Convenient key-bindings for an easier use of the vim-surround plugin. See http://gnapse.github.io/2013/08/12/easier-use-of-the-vim-surround-plugin/ for details.
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
" Surround text currently selected in visual mode | |
" (The surrounded text is kept selected after being surround) | |
vmap <leader>" S"lvi" | |
vmap <leader>' S'lvi' | |
vmap <leader>` S`lvi` | |
vmap <leader>( S)lvi( | |
vmap <leader>{ S}lvi{ | |
vmap <leader>[ S]lvi[ | |
vmap <leader>< S>lvi< |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment