» Jeremy Kahne

I am a freelance developer. Currently messing with Jekyll


Surround text in VIM

08 Jul 2016 » til, vim

A reminder to use the awesome Surround.vim plugin.

Visually select the text you want to surroun, hit Shift-S, type in what you want to surround it with, then Enter.

Screenshot broadcast

If you’d like to surround a word with brackets, you can use

  ysiw] #=> [word]
  ysiw[ #=> [ word ]