DEV Community

Diego Perozo
Diego Perozo

Posted on

How to add quotes, brackets, parenthesis, and more to a visual mode selection in vim

vim-autoSurround

Resume

Hi every body, today I publish my plugin for vim and neovim, for add pairs of: “ ”, ' ', < >, ( ), { } or/and [ ] to a visual mode selection in vim, like vscode does.

Install

You can add this plugin to your vim cloning my repo:
https://github.com/dapt4/vim-autoSurround
Or using a Plugin manager like:

"NeoBundle
NeoBundle 'dapt4/vim-autoSurround'
"or VimPlug
Plug 'dapt4/vim-autoSurround'

:source %
:NeoBundleInstall
"or
:source %
:PlugInstall

Usage

Just select the text with visual mode “v” and type one or all of these: ", ', `, <, >, (, ), { and/or }.

Top comments (0)