Skip to content

hayatogh/vim-surround

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

Vim surround plugin

Yet another surround plugin for Vim.

You can fully customize the surroundings.

Mappings are derived from other surround plugin: tpope/vim-surround, kana/vim-surround.

Install

First, make sure that you uninstall other surround plugins.

And you can install with your favorite method.

If you haven't have one, you can use Vim's built-in plugin system. See :help packages.

git clone git://github.com/matsuhav/vim-surround ~/.vim/pack/manual/start/

Examples

  • ysiw<Space><Space> will surround a word with spaces.
  • ysiwffunc will surround a word with a function named func.
  • yssta> will surround a line with <a> tag.
  • dsf will delete a surrounding function.
  • 2dsf will delete the second outer surrounding function.
  • dsl will delete a surrounding tex begin-end environment.

See help for more information and settings.

The . command will work if you install repeat.vim.

License

Distributed under the same terms as Vim itself. See :help license.

About

surround.vim: an alternative to originals

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Vim Script 100.0%