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

'co' mapping introduces delay for custom 'c' mapping #180

Closed
kerneis opened this issue Mar 21, 2019 · 1 comment
Closed

'co' mapping introduces delay for custom 'c' mapping #180

kerneis opened this issue Mar 21, 2019 · 1 comment

Comments

@kerneis
Copy link

kerneis commented Mar 21, 2019

(This is an issue with how vim-unimpaired interacts with my custom config, probably not something to fix on your end, but I hope you can help.)

Because I use a non-standard keyboard layout, I don't use hjkl to move around but ctsr, hence in my vimrc: noremap c h.

Enabling vim-unimpaired introduces an unbearable delay whenever I press c to move left, because of the co mapping (my understanding is that vim is waiting for a o to happen, or not, before deciding to move).

I'm not an expert in vim mappings and my attempts at googling or fixing this issue have failed. Could you recommend something I'd add to my vimrc to avoid this unfortunate interaction?

In the meantime I've just removed the offending line from vim-unimpaired locally, but I'd rather have a fix that works with the upstream version. Thanks!

@kerneis kerneis changed the title Avoiding 'co' mapping 'co' mapping introduces delay for custom 'c' mapping Mar 21, 2019
@tpope
Copy link
Owner

tpope commented Mar 21, 2019

You can work around by adding <nowait> to your c map.

@tpope tpope closed this as completed in e779230 Mar 21, 2019
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

2 participants