backspace in vim started from xterm gives ^?

Bug #525300 reported by fotonowy on 2010-02-21
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
PLD Linux
Undecided
Unassigned

Bug Description

The immortal problem with fault backspace in vim is back with a new twist.
When vim is started from xterm the backspace produces ^? in the INSERT mode instead of deleting a preceeding character.

The only way to fix that is to manually
:set t_kb=^?
in vim every time the program is started.

When the t_kb variable is set in $HOME/.vimrc it is ignored.
I mean, no matter what I put in .vimrc the :set t_kb in vim returns ^H.
This is why the standard fixes (like fixdel) don't work here.

stty in xterm returns
erase = ^?

A oto pakiety, które mam zainstalowane z titanium:

xterm-243-1.i686
vim-rt-extras-7.2.239-1.i686
vim-heavy-7.2.239-1.i686
vim-7.2.239-1.i686
vim-syntax-gitcommit-1.6.4.4-1.i686
vim-plugin-securemodelines-20080424-1.noarch
vim-tutor-7.2.239-1.i686
vim-doc-7.2.239-1.i686
vim-rt-7.2.239-1.i686
vim-static-7.2.239-1.i686
vim-syntax-lilypond-2.10.33-3.i686
vim-syntax-spec-1.96-1.noarch
vim-spell-en-7.2.239-1.i686

fotonowy (zbyszek) wrote :

Workaround from my friend:

Add

t_RV=

in your .vimrc file. Notice that there is nothing after the "=" character. This will prevent vim from sending special quaries to xterm.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers