sponsor Vim development Vim logo Vim Book Ad

vim-simplified-surround : Very simplified version of Tpope's vim-surround.

 script karma  Rating 8/2, Downloaded by 186  Comments, bugs, improvements  Vim wiki

created by
João Garcia
 
script type
utility
 
description
I wrote this script because the way "(" and ")" works differently in the Tpope's plugin confuses me. I prefer to deal with the spaces separately. Also because I like to keep things minimal. Check https://github.com/jpaulogg/vim-simplified-surround for more info.

This plugin was written in an attempt to be simple enough that users could make any changes directly to it. I believe that this gives users more control and a wider range of possible changes. In addition, the script has comments that help to make some customizations (for example, to create custom pairs). It's almost as simple as doing it in your vimrc.

Usage: ys{motion}{character} in normal mode surrounds motion with character pair. ds{character} deletes it and cs{char1}{char2} changes it to 'char2'. S{character} surrounds selection in visual mode.

 
install details
Just copy surround.vim to the "plugin" directory in your runtime.
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
surround.vim v1 2021-01-25 7.0 João Garcia Initial upload
ip used for rating: 3.144.84.155

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Vim at Github