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

deleting custom surrounds #210

Closed
ballcheck opened this issue Aug 26, 2016 · 4 comments
Closed

deleting custom surrounds #210

ballcheck opened this issue Aug 26, 2016 · 4 comments

Comments

@ballcheck
Copy link

ballcheck commented Aug 26, 2016

I have a custom surround let g:surround_105 = "if \r end"

Add surround works great with ySsi but can't delete with dsi

Also can't change custom surrounds with csi"

@tpope
Copy link
Owner

tpope commented Apr 27, 2017

This is explicitly documented as unsupported. It's also a good example of why it's unsupported, because what you want is the conditional after the if to disappear, but there's no way for surround.vim to know that.

@tpope tpope closed this as completed Apr 27, 2017
@alerque
Copy link

alerque commented Feb 18, 2022

@tpope Would you be willing to re-evaluate this? I've been running a fork of this plugin for years with a workaround, and reports are piling up on another plugin I maintain suggesting I'm not the only one with issues.

@tpope
Copy link
Owner

tpope commented Apr 19, 2022

I don't want to replace normal! with normal unconditionally; there are several special cases for things like ds" where i" and a" which have shall we say surprisingly behavior, and a user map would make a complete mess of that. But I would be okay with a version that used normal! for the big built-ins (anything with a special case plus parentheses, brackets, etc.) and :normal for everything else.

@tpope
Copy link
Owner

tpope commented Apr 19, 2022

I missed that your plugin was literally a quote operator. Does that matter here? Do your a operators include adjacent whitespace like the built-in a" does?

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

3 participants