winklerrr
winklerrr

Reputation: 14857

Switch to INSERT mode with active selection from SELECTION mode (VSCode, Vim)

Is it somehow possible to select something in Vim's selection mode and then switch to input mode with the text still selected?

When working with VSCode, you can select text and press < which surrounds the selection automatically with < and >. But when I use the selection mode of Vim, the feature of VSCode doesn't work.

Upvotes: 1

Views: 1510

Answers (1)

Underscore_
Underscore_

Reputation: 86

vscodevim:

On a visual selection, ys" will add quotes.

https://github.com/VSCodeVim/Vim#vim-surround

IdeaVim:

Use surround emulated plugin put set surround into your ~/.ideavimrc select something with visual mode and press S" to surround with "

sourse and more info

I have tested the IdeaVim plugin, but not the vscode one.

Upvotes: 3

Related Questions