Vim 中退格的奇怪行为(从 Mac SSH 到 Linux) [英] Odd behavior of backspace in Vim (SSH to Linux from Mac)
本文介绍了Vim 中退格的奇怪行为(从 Mac SSH 到 Linux)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我没有更改 Vim 的任何设置,但是今天 Backspace 出现了一些疯狂的行为.每次我点击它,它不会删除一个字符,而是打印^?
.有人知道这是怎么回事吗?
I didn't change any setting of my Vim, but today the Backspace gets some crazy behavior. Every time when I hit it, it does not delete a character, but prints ^?
. Anyone knows what is going on?
推荐答案
问题来自 Mac Terminal 和 Linux Terminal 之间的通信.
The problem comes from the communication between Mac Terminal the Linux Terminal.
转到 Mac 终端 -> 首选项 -> 高级选项卡,选中删除发送 Ctrl-H"选项.然后在我登录到 Linux 之后,Backspace 在 Vim 中工作得很好.
Go to the Mac Terminal -> Preferences -> Advanced tab, check the option "Delete sends Ctrl-H". Then after I login to Linux, and Backspace works just fine in Vim.
这篇关于Vim 中退格的奇怪行为(从 Mac SSH 到 Linux)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文