" via: http://whynotwiki.com/Vim " Ruby " Use v or # to get a variable interpolation (inside of a string)} " ysiw# Wrap the token under the cursor in #{} " v...s# Wrap the selection in #{} let g:surround_113 = "#{\r}" " v let g:surround_35 = "#{\r}" " # " Select text in an ERb file with visual mode and then press s- or s= " Or yss- to do entire line. let g:surround_45 = "<% \r %>" " - let g:surround_61 = "<%= \r %>" " =