Saturday, March 31, 2012

Re: CTRL-X keybindings in insert mode (e.g. ragtag.vim)

Hi MikeM!

On Sa, 31 Mär 2012, MikeM wrote:

> I recently downloaded Tim Pope's ragtag.vim (http://www.vim.org/scripts/script.php?script_id=1896) and note that most of the keybindings therein consist of CTRL-x, followed by another key (e.g. <C-x><CR> to create a pair of tags separated by a newline).
>
> One thing I've noticed is that if I type (in insert mode) CTRL-x and delay, say for a couple of seconds, the expected command invocations do not occur? I also not that, after such a delay, VIM displays a message in command buffer indicating that I'm in CTRL-x mode. Pressing any key, other than those listed in the command buffer message, results in the insertion of that character into the buffer as normal. This is perhaps to be expected as it accords with the description of CTRL-x mode in help, however, hitting CTRL-x and then a third key in rapid succession produces the desired result (i.e. ragtag.vim does what it's supposed to).
>
> Is this to be expected? Do others experience this?

I guess this is expected. See :h 'timeoutlen' and :h 'ttimeoutlen'

See also the faq:
http://vimhelp.appspot.com/vim_faq.txt.html#faq-20.16

regards,
Christian
--
Der Computer ist eine logische Weiterentwicklung des Menschen: Intelligenz
ohne Moral!

--
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

No comments:

Post a Comment