Are there any vim plugins to enclose selected text in quotes or parentheses? For instance, if I were to select a block of text in visual mode, and pressed a key combination or do a command, that text would be enclosed in parentheses/quotes.
|
feedback
|
|
I use surround.vim for this type of thing. For example, visually select an area and type " Unfortunately surround has some slightly odd behaviors, and the help file is sometimes a little unclear, but I find it tolerable. | |||
|
feedback
|
|
I've been maintaining a plugin that offers this kind of feature: lh-map-tools. You'll have to tune it though to specify bracket-like pairs you want to support. | |||
|
feedback
|