在 Vim 中,当我backspace
在模式中按下键时insert
,它会留下^?
字符并且不会删除它应该删除的字符。
我有以下内容.vimrc
syntax on
set number
set expandtab
set incsearch
set nocompatible
set backspace=indent,eol,start
fixdel
这也发生在命令模式下。当我输入错误W
而不是w
保存时,我按下backspace
键,它给了我以下信息:
:W^?
关于什么是错的以及如何解决它的任何想法?
更新:在将这个问题发布给 SO 之前,我已经完成了基本的谷歌搜索,并尝试了搜索结果第一页中的所有建议,但没有成功。
@strcat 我正在使用 vim 版本 7.0.237、KDE 控制台 1.6.4、Linux 2.6.18 x86_64 机器。
@graywh wrt 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