在Vim中,当我在插入模式
下按下退格
键时,它会留下^?
字符,并且不会删除它应该删除的字符。
我的.vimrc
中有以下内容:
syntax on
set number
set expandtab
set incsearch
set nocompatible
set backspace=indent,eol,start
fixdel
即使在命令模式下也会出现这种情况。当我错误地键入 W
而不是 w
进行保存时,我按下 退格
键,它会给我以下提示:
:W^?
有什么想法,怎么修复?更新:在将这个问题发布到stackoverflow之前,我已经进行了基本的谷歌搜索,并尝试了搜索结果第一页的所有建议,但是都没有成功。@strcat 我正在使用vim版本7.0.237,KDE控制台1.6.4,Linux 2.6.18 x86_64机器。@graywh 关于cat -v,对于删除,我得到^[[3〜,对于退格,我得到^?。stty-a的输出如下.speed 38400 baud; rows 38; columns 194; line = 0;
intr = ^C; quit = ^\; erase = ^H; kill = ^U; eof = ^D; eol = <undef>; eol2 = <undef>; swtch = <undef>; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R; werase = ^W; lnext = ^V; flush = ^O;
min = 1; time = 0;
-parenb -parodd cs8 -hupcl -cstopb cread -clocal -crtscts -cdtrdsr
-ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl -ixon -ixoff -iuclc -ixany -imaxbel iutf8
opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0
isig icanon iexten echo echoe echok -echonl -noflsh -xcase -tostop -echoprt echoctl echoke