Macvim Surround Plugin

I am new to Vim in general, but I have problems with the Surround plugin. Most of the standard options seem to work, but when I select the text in visual mode, switch back to edit mode and press 's' to surround the 's' key, it just ends deleting the selected text and moving the editor back to insert mode.

After you delve into this, it seems logical, since this is the behavior that ā€œsā€ should have in this mode, but then how do I surround the selected text with the plugin?

+4
source share
1 answer

Select the text in visual mode, as in v mode, and select your text (for example, viw to select the word in which your cursor is located, and enter, for example, s' to surround it with single quotes. Do not exit the visual mode.

+3
source

All Articles