'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.



Solution 1:[1]

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.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Underscore_