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:
@@ -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)
|
||||||
|
|||||||
12
vim/using-vim-surround-with-a-visual-selection.md
Normal file
12
vim/using-vim-surround-with-a-visual-selection.md
Normal 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.
|
||||||
Reference in New Issue
Block a user