Wednesday, June 19, 2013

mappings time out bug?

This behavior confuses me. It feels like a bug.

I have the following mapping

nnoremap gp `[v`]

since 'g' is not mapped, it shouldn't timeout no matter what the timeout length is right? As expected, the built in mapping for gp, gv, etc. both work no matter how long one waits between the g and the p.

But when I define a remapping, what happens is that after the timeout the gp gets mapped to the DEFAULT function. So, for example, if you have

:se timeout ttimeout timeoutlen=1000 ttimeoutlen=-1
:nnoremap gp `[v`]

pressing g (wait more than 1 second) p produces an entirely different result than gp.

By the way, I'm using vim on cygwin on windows.

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment