iwata motonori
let g:surround_{char2nr('%')} = "%(\r)" let g:surround_{char2nr('w')} = "%w(\r)" let g:surround_{char2nr('#')} = "#{\r}" let g:surround_{char2nr('e')} = "begin \r end" let g:surround_{char2nr('i')} = "if \1if\1 \r end" let g:surround_{char2nr('u')} = "unless \1unless\1 \r end" let g:surround_{char2nr('c')} = "class \1class\1 \r end" let g:surround_{char2nr('m')} = "module \1module\1 \r end" let g:surround_{char2nr('d')} = "def \1def\1\2args\r..*\r(&)\2 \r end" let g:surround_{char2nr('p')} = "\1method\1 do \2args\r..*\r|&| \2\r end" let g:surround_{char2nr('P')} = "\1method\1 {\2args\r..*\r|&|\2 \r }"
ruby vim
Would you like to comment?
Join Diigo for a free account, or sign in if you are already a member.