Jean Johner wrote:
Working in insert mode, I sometimes type "CRTL-O u" to undo.
It works but very slowly (more than one second)
On the contrary, using CTRL-U imapped to "<C-O>u" is immediate.

Does it happen if you start a naked session of vim with

  vim -u NONE

My first suspicion is that you have some off insert-mode mapping like

  :inoremap <c-o>ux rest-of-mapping-here

(where "x" could be any key) so Vim is waiting 'timeoutlen' or 'ttimeoutlen' to disambiguate if you meant "just <c-o>u" or if you planned to get around to typing the next character. I'd start by looking at the output of

  :inoremap
and maybe also
  :nnoremap

to see if there's some funky mapped.

Additionally, I'd try tweaking the two timeout settings to noticeably longer delays like 5 seconds and 10 seconds respectively. Repeat the experiment and see if it takes 5 or 10 seconds for the undo to happen (which would indicate how Vim is treating it and what the cause of the delay is).

It's possible that there's some internal state that Vim is attempting to maintain or an autocmd that's getting run but I'd at least eliminate the above possibility of a mapping and reply back armed with the timeout information to help folks diagnose the problem.

-tim



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

To unsubscribe from this group, send email to vim_use+unsubscribegooglegroups.com or 
reply to this email with the words "REMOVE ME" as the subject.

Reply via email to