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

Already on GitHub? Sign in to your account

<BS> only deletes the matching closing delimiter when 'backspace' doesn't contain start #64

spiiph opened this Issue Jul 6, 2011 · 5 comments


None yet
2 participants

spiiph commented Jul 6, 2011

When the 'backspace' option doesn't contain the 'start' value, so that can delete over the point where insert mode was started, delimitMate only deletes the matching closing delimiter.

Steps to reproduce:

:set backspace=


Raimondi commented Feb 6, 2012

I guess if you can delete the opening paren the closing should be left there as well. Right?

spiiph commented Feb 7, 2012

Yes, I think so. Or you just ignore the user's setting of 'backspace'.


Raimondi commented Feb 15, 2012

I can't ignore user's settings in general, but I can make aware of the value of backspace and make it work only on the parens/quotes inserted in that insert session and do nothing special otherwise.

i((<BS>x        ==> (x)
i((<Esc>a<BS>x  ==> ((x))

Would something like that be sensible for your use case?


Raimondi commented Feb 16, 2012

I have implemented that behaviour, let me know what you think.

spiiph commented Feb 16, 2012

Yes, that sounds like a good idea. I'll check it out when I have time.

@Raimondi Raimondi closed this Feb 9, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment