SyntaxHighlighter

2009-04-26

The arrow keys setting for vi

Sometimes your vim won't acted currently when u press the arraw keys.

There are 2 ways for it.

(1)
Edit .vimrc and add the texts below:
set t_ku=^[OA
set t_kd=^[OB
set t_kr=^[OC
set t_kl=^[OD

The "^[" is the ESC key. And we can key in "^[OA" with press "Ctrl+v" + UP key.
So as the others.

(2)
Edit .vimrc and add the texts below:
set nocompatible




By the way,
if the BACKSPACE key didn't work, add the texts below into .vimrc
set backspace=2

0 件のコメント:

人気の投稿