方法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