Dominique Pellé wrote:

> Jean Johner wrote:
>
>> See also vim_use thread with the same title.
>>
>> Using vimrc_example.vim as .vimrc, it appears that typing "CTRL-O u"
>> in insert mode takes 2-3 s to execute.
>>
>> 1) Using an empty .vimrc and launching
>> gvim --noplugin
>> shows the delay.
>
> It's not just with gvim. It also happens with vim-7.2.403 in terminal as well.
>
> I can't fully automate it, but the steps to reproduce are simple:
>
> 1) use an empty ~/.vimrc  (but it happens if I keep my ~/.vimrc as well)
>
> $ cp ~/.vimrc ~/,vimrc.backup
> $ rm ~/.vimrc
> $ touch ~/.vimrc
>
> 2) start vim with:
>
>  vim --noplugin
>
> 3) Run Ex command:
>
> :call feedkeys("iundo this takes 3 sec. Why?\<c-o>u", "t")
>
> 4) Observe that it takes ~2 or ~ 3 sec to undo the text.
>
> -- Dominique


The 3 sec delay happens because of this line at normal.c:1282:

1282     ui_delay(3000L, FALSE);   /* wait up to three seconds */

I suppose that the delay is to give a chance to see the message
"1 change; before #1  2 seconds ago" at the bottom of the window
before replacing it with "-- INSERT --" after the 3 sec delay.

If so, it's not a bug but a feature.

-- Dominique

-- 
You received this message from the "vim_dev" 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_dev+unsubscribegooglegroups.com or reply to this email with the words 
"REMOVE ME" as the subject.

Raspunde prin e-mail lui