I get an extra space at the end of a word for single character surrounds #188
-
|
Beta Was this translation helpful? Give feedback.
Answered by
echasnovski
Jan 2, 2023
Replies: 1 comment 1 reply
-
Here is a breakdown of
So to not include whitespace after current word use |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
grimm26
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Here is a breakdown of
saw"
:sa
initiates adding surrounding. Waits for user to input any kind of motion/textobject (on which surrounding will be added).w
serves as that motion/textobject. It is a word motion (see:h w
) which moves cursor at the start of next word. Which means that surrounding will be added at the region between current cursor position (included) and up until start of next word (excluded). This means including whitespace after current word."
indicates which surrounding you want to add (pair"
in this case).S…