-
Notifications
You must be signed in to change notification settings - Fork 117
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
Breaking on ESC and Backspace key #62
Comments
When the problem appears, can you paste the output of the following commands here:
|
Output of ":verbose imap <Esc>" Output of ":verbose imap <BS>" |
The problem is that lusty-juggler changes the mapping for its own use and then tries to restore the previous mapping, but that's not reliable and causes problems because lusty-juggler uses :inoremap and delimitMate needs :imap in those cases. Make sure the problem hasn't been fixed in the latest version and then contact lusty-juggler's maintainer. |
Hi Raimondi, not sure that diagnosis is correct. I believe it's a bug in Vim, not in LustyJuggler -- hameedullah, what version of Vim are you running? If it's below 7.3.32 (see the "Included patches" line in the output of |
Yes, i am using Vim 7.2 the default that comes with Ubuntu 10.04. I will try to upgrade and see if that fixes the issue. |
Hi sjbach, after looking at the requested mappings, I took a quick look into LustyJuggler's code and found this line: https://github.com/sjbach/lusty/blob/master/plugin/lusty-juggler.vim#L682 It's certainly due to a limitation of Vim (on pre 7.3 versions), but the reported problem was linked to LustyJuggler, not delimitMate. I'd also like to note that keys mapped to <Plug> mappings aren't set with noremap as they need to be expanded, I guess that'd be easy to test and use the correct command when restoring the mapping. |
I believe I have a working fix with https://github.com/grota/lusty/commit/06c84b805f775eb19724ba6d52454be7394127ab |
For some unknown reason, delimitMate starts breaking on and Backspace key. As soon as I hit key in insert mode it gets out of insert mode and wait for few seconds for me to hit another key, if I hit another key it goes back to insert mode and inserts that key prefixed with "delimitMateEsc". And if I don't hit any key after hitting it times out after few seconds and goes back into insert mode and just inserts "delimitMateEsc".
The behavior with Backspace key is different, when I hit backsapace key in insert mode it just immediately inserts delimitMateBS.
UPDATE:
The above weird situation does not always occur. It only occurs after few minutes of editing and using Vim.
File type is: PHP
The text was updated successfully, but these errors were encountered: