sponsor Vim development Vim logo Vim Book Ad

basic Tip #495: Backspace key using puTTY to RH9 box

 tip karma   Rating 48/22, Viewed by 2101 

Read and edit this tip on the Vim tip wiki. The wiki may have a more recent version of this tip.

created:   June 26, 2003 9:10      complexity:   basic
author:   Tom Kompare      as of Vim:   5.7

I connect to a RedHat9 server via the free software "puTTY" from a Windows computer.  On the shell (tcsh), the <Backspace> was working as it should, but in VIM it was not.  No matter what I did in the .vimrc file, it always acted like a <Delete> key.  Very annoying.

I've discovered that one must use the keyboard setting of "linux" in the puTTY settings in order for the <Backspace> key to work properly in VIM.  The "linux" keyboard is not the default.  If one does not do this, VIM always is sent the <Delete> key command when pressing on the <Backspace>.

 rate this tip  Life Changing Helpful Unfulfilling 

<< maximize or restore window | This is the hyperlinked html format of the Vim Reference Manual. >>

Additional Notes

omanakuttan(at)tataelxsi(dot)co(dot)in(nospam), June 28, 2003 5:50
If you use dtelnet (dave's telnet) to RH 7.3, and 8.0, same problem appears, not only in vim, but throughout the session. Choosing term=linux from the menu helps you there also.
lmasterson at hcocntf dot org, July 22, 2003 7:36
The key thing here is changing the string that PuTTy sends to 'linux' from the default of 'xterm'

Doing this magically made everything work as it should.  
[email protected], February 12, 2006 14:53
This tip saved me a ton of time I'm sure.  I also had to change the Putty setting "The Backspace Key" to "Control-H" from "Control-?"

Joel Auernheimer
http://www.SERVICEandINTEGRITY.com
[email protected], September 9, 2006 5:10
Thanks a ton this helped me get rid of annoying backspace problem. I have changed my putting setting for backspace to Ctrl-h from Ctrl-?
[email protected], September 12, 2006 20:59
Thanks, this tip was extremely useful.
If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Sponsored by Web Concept Group Inc. SourceForge.net Logo