Vim surround

Updated: 17 May 2023

Surround a single character with square brackets, no additional space

ysl]

Surround a visual selection with backticks. Make the selection then

S`

For “Hello world!”, change double quotes to single quotes

cs"'

For <em>foo</em>, change tags to double quotes

cst"

Leave a comment