1
0
mirror of https://github.com/jbranchaud/til synced 2026-01-03 23: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

@@ -10,7 +10,7 @@ smart people at [Hashrocket](http://hashrocket.com/).
For a steady stream of TILs from a variety of rocketeers, checkout For a steady stream of TILs from a variety of rocketeers, checkout
[til.hashrocket.com](https://til.hashrocket.com/). [til.hashrocket.com](https://til.hashrocket.com/).
_726 TILs and counting..._ _727 TILs and counting..._
--- ---
@@ -819,6 +819,7 @@ _726 TILs and counting..._
- [Turning Off Search Highlighting](vim/turning-off-search-highlighting.md) - [Turning Off Search Highlighting](vim/turning-off-search-highlighting.md)
- [Unloading A Buffer](vim/unloading-a-buffer.md) - [Unloading A Buffer](vim/unloading-a-buffer.md)
- [Use Active Window With BufExplorer](vim/use-active-window-with-bufexplorer.md) - [Use Active Window With BufExplorer](vim/use-active-window-with-bufexplorer.md)
- [Using vim-surround With A Visual Selection](vim/using-vim-surround-with-a-visual-selection.md)
- [Verbose Commits With Fugitive](vim/verbose-commits-with-fugitive.md) - [Verbose Commits With Fugitive](vim/verbose-commits-with-fugitive.md)
- [View Commit History of a File](vim/view-commit-history-of-a-file.md) - [View Commit History of a File](vim/view-commit-history-of-a-file.md)
- [Viewing Man Pages with man.vim](vim/viewing-man-pages-with-man-vim.md) - [Viewing Man Pages with man.vim](vim/viewing-man-pages-with-man-vim.md)

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.