-
Notifications
You must be signed in to change notification settings - Fork 46
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
<Esc> doesn't quit immidietly insert mode when b:lexima_disabled = 1 #88
Comments
Thank you for your feedback. Please tell me some information
|
You are right. Here's some basic information:
Minimal setup I've tested to reproduce the issue:
Please test this and see I'm right. I think the issue is that I use
While (I assume you'd expect) in a buffer where
And that esc timeout issue doesn't occur. I'll add to that, that if I use instead of
As you propose in the help file, the issue persists. |
Hey, While trying to workaround this, I discovered that running diff --git i/plugin/lexima.vim w/plugin/lexima.vim
index f7b377d..4f83d7a 100644
--- i/plugin/lexima.vim
+++ w/plugin/lexima.vim
@@ -20,6 +20,7 @@ endif
function! s:setup_insmode()
if get(b:, 'lexima_disabled', 0)
+ silent! iunmap <esc>
return
endif I'd have opened a PR but I have no idea why exactly this is needed and I don't understand the overall design of the whole insert mode autocmds etc. |
What say you @cohama ? |
I'm sorry for slow response. |
@cohama did you manage to reproduce the issue with the steps I gave you in my comment? I updated lexima now, and checked these steps once more and they still prove the issue. |
Since it has smart pairing and lexima has the annoying esc bug[1], it's a better alternative. [1]: cohama/lexima.vim#88
Hey,
I'm really enjoying lexima and I almost never complain. It's also a much better alternative to
@tpope
's "endwise" which doesn't seem as configurable as this one. However, I'm having a rather annoying small inconvenience with it which I've successfully tracked down to this plugin. I'll explain:When I first started using Vim, I noticed there is a delay between when I press
<Esc>
and when I actually see the mode indicator changing at the bottom. Thankfully, many people have encountered this weird default setting and have wrote about this.Through out the years, after I changed some mappings in my
init.vim
, Sometimes I suddenly started noticing that my<Esc>
doesn't make me leave insert mode immediately as I'm used to yet I could always track this down to clashing mappings I defined by myself e.g:The issue I'm having with lexima, is that with some filetypes, where I
let b:lexima_disabled = 1
and only inside these buffers, I experience that annoying lag after pressing<Esc>
.Anyway I was hoping you could help me out figure this out.
The text was updated successfully, but these errors were encountered: