1
0
mirror of https://github.com/jbranchaud/til synced 2026-01-08 01:28:02 +00:00

Add Using vim-surround With A Visual Selecction as a vim til

This commit is contained in:
jbranchaud
2018-11-30 14:05:47 -06:00
parent 693b8f2680
commit a9c500a35f
2 changed files with 14 additions and 1 deletions

View File

@@ -0,0 +1,12 @@
# Using vim-surround With A Visual Selection
The [`vim-surround`](https://github.com/tpope/vim-surround) plugin allows
you to do a variety of actions that have to do with the surrounding
characters of text objects.
The `S` keystroke allows you to surround a visual selection with the
following character.
First, make a visual selection. Then hit `S`. Then hit a surround character
such as `(` or `[` and the area of text that has been visually selected will
be wrapped with the respective surround characters.