-
Notifications
You must be signed in to change notification settings - Fork 13
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
Consider refactoring default binding system #17
base: master
Are you sure you want to change the base?
Conversation
Instead of an imap of multiple printable characters, such as |
@Konfekt I've been playing around with different binding methods and am unable to verify the results you describe. Perhaps this is because I am using Neovim instead of classic Vim and a lot of the key binding and terminal interfaces have been cleaned up, but I can distinguish no difference in using What version of Vim are you using and can you really tell the difference? Additionally using |
I am using 8.1.892, but this is clobbering is a necessity: By a mapping Edit: it seems that it is the cursor movement that is delayed, not the printing of |
It's looking more and more to me like the Is there something I'm missing? |
Yes, pausing does not inhibit an abbreviation; one must, for example, move the cursor or use after having it written out. That is why the string mapped to should be rarely typed; but neither The problem with any |
I think this could be fixed by modifiying the abbreviation if you could give an example where this happens and describe what you expect instead. |
@Konfekt It just dawned on me one of the major reasons the abbreviation solution feels wrong to me. I can't type the command to create a footnote where I would actually place the footnote. I must create a space around the abbreviation, and the footnote marker ends up being separated from the word I would normally be footnoting. This could, of course, be countered with a single character delete as part of the routine, but that would surely be more "surprising" than the delay in cursor movement with the I suggest the best thing to do is document the behavior oddity of |
Well, in this case I'd suggest
By any means, there is no obvious choice of the insert mode mapping that suits every user. On another note, the inoremap @@ <c-o>ZZ could be suggested. |
Is this good to go now? |
I have no idea, the status is definitely not still in any current brain registers. |
I've been waiting for the repository rebase (#5) to happen before opening this, but that time has come.
In the process of integrating various peoples' contributions, I noticed in @Konfekt's fork that he had significantly changed the default bindings, and even the way the insert mode mapping worked to be an abbreviation instead.
While I'm not sure his binding choices are the best ones to go with, they certainly open up an interesting point that I think needs review and discussion.
For reference my own current bindings are as follows:
What's here that we should consider using? Or at least documenting things users may want to do differently (i.e. abbreviations vs. mappings)?
Also see #15 for related discussion.