-
For example, I'd like to put the word under the cursor and the following 3 words within a pair of quotation marks. Can I do that? |
Beta Was this translation helpful? Give feedback.
Answered by
pkazmier
Jul 9, 2024
Replies: 1 comment
-
Sure, there are several ways you can do that with standard vim motions:
I'm sure there are many other ways to do the same, but that should get you pointed in the right direction. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
proofer
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Sure, there are several ways you can do that with standard vim motions:
sa4e"
, which will add a surrounding (sa
) around the current position and the end of the next four words (4e
) using quotation marks ("
). If you are unsure of how many words, you could doveeeesa"
, which will give you visual feedback on the words you are going to place quotes around.