Wednesday, May 24, 2006

broken terminals - cure for the vim

Many times I have come across broken terminals screwing vim handling of shortcuts. Or vim just do not expect that some keys may produce such long sequences.

The most common sign - '--INSERT--' isn't displayed immedaitely after pressing insert key.

The cure is:


set notimeout
set ttimeout
set timeoutlen=100


Put that three lines into the beggining of the ~/.vimrc.

P.S. The tips is located in vim's excelent help system under the keyword "xterm-cursor-keys". Type that in vim - :help xterm-cursor-keys - to get there.

No comments: