Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to not add whitespaces? #363

Closed
0804d23d opened this issue Aug 28, 2022 · 1 comment
Closed

How to not add whitespaces? #363

0804d23d opened this issue Aug 28, 2022 · 1 comment

Comments

@0804d23d
Copy link

0804d23d commented Aug 28, 2022

I saw #27, but probably because I'm new to Vim, and also perhaps it's because something from VimTeX is interfering with vim-surround, I have settled with selecting the text I want to add a delimiter in visual mode, press S then whatever the delimiter in mind, but how can I get rid of the whitespaces added at the beginning and the end?

In #27, someone mentioned "use the close paren", but after reading the doc, I still have no idea what it means by "close paren". If it's the change surrounding mentioned in the doc *cs*, then even if *cs* can add a delimiter to whatever I have selected, it's not working for me because in either visual or insert mode, pressing c just remove the entire word selected (I'm using MacVIM).

So the only options that work for me are using S + delim, or ysW( (and similar). But both of them add whitespaces at the beginning and the end, which is really annoying.

@tpope
Copy link
Owner

tpope commented Aug 28, 2022

I still have no idea what it means by "close paren"

It's ).

So the only options that work for me are using S + delim, or ysW(

That ( is an "open paren". It's the thing you're supposed to replace with a "close paren".

@tpope tpope closed this as completed Aug 28, 2022
tpope added a commit that referenced this issue Oct 25, 2022
Apparently mentioning in the both the README intro and the help file
isn't enough.  I give up.

Resolves: #366
Resolves: #363
Resolves: #314
Resolves: #303
Resolves: #240
Resolves: #205
Resolves: #108
Resolves: #27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants