Vim add text surrounding
So you have in vim one line with: Hello World!
.
You can add <b>
and </b>
surrounding Hello
by typing on normal mode:
ysiw<b>
# from: Hello World!
# to: <b>Hello</b> World!
For the whole line:
yss<b>
# from: Hello World!
# to: <b>Hello World!</b>
You'll need vim-surround plugin
Tweet