How do you surround a visual selection with characters?
S) with vim-surround
With the vim-surround plugin, select text visually and press S) to wrap with parentheses.
S) with vim-surround
With the vim-surround plugin, select text visually and press S) to wrap with parentheses.
cs"'
The vim-surround plugin by Tim Pope lets you change any surrounding delimiter pair with a single cs command.
plugins #plugins #surround #editing #text-objects #normal-mode
ds"
The vim-surround plugin provides the ds command to instantly delete any surrounding delimiter pair.
plugins #plugins #surround #editing #text-objects #normal-mode
S"
The vim-surround plugin provides the S command in visual mode to wrap any selection with a delimiter pair.
ysiw)
The vim-surround plugin provides the ys (you surround) operator to wrap any Vim text object or motion with a delimiter pair.
plugins #plugins #surround #editing #text-objects #normal-mode
ysiw<em>
The vim-surround plugin makes wrapping text in HTML or XML tags effortless.
ciw""<Esc>P
Vim doesn't have a built-in "surround" operator, but you can wrap any word in quotes or brackets with a short sequence: ciw""P.
editing #editing #text-objects #normal-mode #productivity #surround