Wednesday, September 24, 2014

Re: How to force Vim to reconcider abbreviations?

On 22/09/14 19:37, Ben Fritz wrote:
> I was actually quite surprised to find that abbreviations don't work if you wait 'updatetime' milliseconds between starting and ending the abbreviation, triggering the CursorHoldI event. That could be due to specific events firing, I don't really know, but it is not documented anywhere I could find.

What is documented is that mappings expire after 'timoutlen'
milliseconds. Abbreviations are not explicitly mentioned there, but I
imagine that they might share part of the mapping code.

- Try setting 'timeoutlen' and 'updatetime' to very different valuies so
you can easily tell which of them is relevant;
- If 'updatetime' does trigger abbreviations even when very different
from 'timeoulen', does it make a difference if you remove any CursoHoldI
autocommands that you might have?


Best regards,
Tony.
--
The only thing we learn from history is that we do not learn.
-- Earl Warren

That men do not learn very much from history is the most important of all
the lessons that history has to teach.
-- Aldous Huxley

We learn from history that we do not learn from history.
-- Georg Hegel

HISTORY: Papa Hegel he say that all we learn from history is that we learn
nothing from history. I know people who can't even learn from what happened
this morning. Hegel must have been taking the long view.
-- Chad C. Mulligan, "The Hipcrime Vocab"

--
--
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/d/optout.

No comments:

Post a Comment