Posts

Showing posts from August, 2018

Vim: surround a list of sentences with HTML tags

Image
If you have a list of words or sentences in Vim and you need to add a couple of tags around each of them you cannot siply use the V (upper v) command to select all of them before using vim.surround because in this case you get only one couple of tags for all the list.

Vim, changing a tag around a word in HTML mode

Image
In Vim HTML mode if you need to surround a word with a tag you can effectively use vim.surround with the cursor anywhere in the word using the following string: ysiw followed by the specific desired tag.