歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
您现在的位置: Linux教程網 >> UnixLinux >  >> Unix知識 >> 關於Unix

FreeBSD下Vim 箭頭鍵顯示為ABCD


FreeBSD Vim在Insert模式下,上下左右箭頭鍵顯示為ABCD四個字母。
解決:
方法1.
編輯.vimrc,加入set nocompatible
方法2.
$ vim ~/.vimrc
set t_ku= (now type Ctrl-V and press cursor up)
set t_kd= (now type Ctrl-V and press cursor down)
set t_kr= (now type Ctrl-V and press cursor right)
set t_kr= (now type Ctrl-V and press cursor left)
You should get something that looks like
set t_ku=^[OA
set t_kd=^[OB
set t_kr=^[OC
set t_kl=^[OD
Copyright © Linux教程網 All Rights Reserved