I just downloaded vim today.
The surround plugin documentation says:
Press
cs"'
inside"Hello world!"
to change it to'Hello world!'
.
But where am I supposed to press cs"'
and in which mode?
iw means inside word - the entire command reads "yank surround inside word".
Vim-sneak and vim-EasyMotion are a couple of Vim plugins that supercharge how fast you can move in Vim. Both of these plugins need to be enabled via your VSCodeVim settings. To enable them, just go to Preferences, Settings search for vim sneak or vim easymotion and you'll find the switch.
Just downloaded vim? You've made the right choice!
Vim has several modes.
Insert mode is what you use to actually type text. It is not what you use to move around the document ( in vim terms, the 'buffer' ).
After you have typed "Hello world":
hit ESC to go to Command mode.
use the 'hjkl' keys to move the cursor inside the quotes.
then type cs"' to Change Surrounds from " to '
Vim's online help is excellent.
In Command mode, type :help surround to get the help for the plugin
if you see nothing doing that, first try :help helptags , which will tell you how to setup the help files ( surround plugin also has excellent help )
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With