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?
The problem comes from the communication between Mac Terminal the Linux Terminal.
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.
Not sure why it would randomly start doing this based on the information you gave, but trying adding this line to your .vimrc
set backspace=start,eol,indent
:fixdel
section of the vim docs: vimdoc.sourceforge.net/htmldoc/options.html#:fixdel –
Incinerate The problem comes from the communication between Mac Terminal the Linux Terminal.
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.
In Mac Mavricks and Yosemite Open a terminal, then command+, for preferences, click on the profile tab, click on the -keyboard- menu, then add +
Key: very bottom, <= Delete
Modifier: ^ Control
Action: Send Text
Text: H
click Ok
© 2022 - 2024 — McMap. All rights reserved.
.vimrc
and then look again to Backspace behavior. Is it changed? If yes, then you can at least find the reason by method of exclusion. – Oto.vimrc
actually sources from a standard vimrc of my company. There is no recent change for this.vimrc
source. @dimonomid Thank you! I just took it out. Still no luck. This may tell me that this problem may not come from the linux terminal. – Immixture