0

I'm using vim in the terminal a log and I'm getting frustrated with its slow performance. I'm on Debian Jessie using Gnome.

If I open a file in vim do a block select and I to insert on multiple lines there is always a delay from when I press esc to when the change is inserted.

If I do the the same thing in gvim the change is imidiate.

I have tried adding

set ttyfast
set lazyredraw

In my ~/.vimrc but that does not make any noticeable difference.

$ vim --verion
VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Nov 20 2015  15:31:14)
Included patches: 1-930  
2
  • What terminal emulator are you using? Dec 22, 2016 at 14:56
  • Do you have a mapping that starts with Escape? Check :map <Esc> and :map! <Esc> for any output. Dec 22, 2016 at 15:13

1 Answer 1

3

This is completely normal.

In Vim, some special keys (like the cursor keys) are implemented as <Esc> followed by some other character. Therefore, Vim waits a bit after your press <Esc> to determine if you actually wanted <Esc> or if you wanted something else like <Esc>A (<Up>).

See :help 'timeout', :help 'timeoutlen', :help 'ttimeout', and :help 'ttimeoutlen'.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.