Vim plugin surround

Normal mode
———–
ds – delete a surrounding
cs – change a surrounding
ys – add a surrounding
yS – add a surrounding and place the surrounded text on a new line + indent it
yss – add a surrounding to the whole line
ySs – add a surrounding to the whole line, place it on a new line + indent it
ySS – same as ySs

Visual mode
———–
s – in visual mode, add a surrounding
S – in visual mode, add a surrounding but place text on new line + indent it

http://www.catonmat.net/blog/vim-plugins-surround-vim/

Vim plugin surround Normal mode ds delete a…
Tagged on:

Leave a Reply

Your email address will not be published. Required fields are marked *