我在使用Vim时遇到了退格键的问题,它插入^?而不是删除字符。我找到了这个非常棒的Vim文档,希望能够解决这个问题。
If the backspace key terminal code is wrong you can
use this:
:if &term == "termname"
: set t_kb=^V<BS>
: fixdel
:endif
Where "^V" is CTRL-V and "<BS>" is the backspace key
(don't type four characters!). Replace "termname"
with your terminal name.
我正在尝试按照网站建议将这段代码添加到我的 .vimrc 文件中,但是我怎么知道我的“终端名称”是什么?
echo $TERM
。 - Kevin