diff --git a/README.md b/README.md index 950db63..8090de3 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ smart people at [Hashrocket](http://hashrocket.com/). For a steady stream of TILs from a variety of rocketeers, checkout [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) - [Unloading A Buffer](vim/unloading-a-buffer.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) - [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) diff --git a/vim/using-vim-surround-with-a-visual-selection.md b/vim/using-vim-surround-with-a-visual-selection.md new file mode 100644 index 0000000..d998013 --- /dev/null +++ b/vim/using-vim-surround-with-a-visual-selection.md @@ -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.