vim: ,# and ," for wrapping words in ruby interpolation or quotes

This commit is contained in:
yan 2012-05-07 23:55:41 -07:00
parent 7ec7e3c34c
commit 6cefaf13f7
2 changed files with 6 additions and 0 deletions

View File

@ -333,6 +333,7 @@ files contain key mappings as well (TODO: probably will move them out to skwp-ke
* `Cmd-'` and `Cmd-"` to change content inside quotes
* Cmd-Space to autocomplete. Tab for snipmate snippets.
* `,ci` to change inside any set of quotes/brackets/etc
* `,#` and ',"' to surround a word in #{ruby interpolation} or "quotes"
#### Tab Navigation

View File

@ -38,6 +38,11 @@ imap <silent> <D-d> _
imap <silent> <D-K> -
imap <silent> <D-D> -
" ,# Surround a word with #{ruby interpolation}
map ,# ysiw#
" ,# Surround a word with quotes
map ," ysiw"
" gary bernhardt's hashrocket
imap <c-l> <space>=><space>