LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-23-2004, 09:44 AM   #1
clockworks
Member
 
Registered: Dec 2003
Location: texas
Distribution: fedora core 1, fedora core 2
Posts: 37

Rep: Reputation: 15
backspace key printing ^? in vim


on my redhat 9 system, backspace in vim works as expected. but when i rlogin to a redhat 7.3 machine on my network, when i type backspace in vim, it prints ^? instead of deleting the character that the cursor is on. why does it do this and how can i fix it?

thank you.
 
Old 01-23-2004, 10:24 AM   #2
drws
Member
 
Registered: Jan 2004
Posts: 30

Rep: Reputation: 15
just after you have logged into the remote machine type...
stty erase (and then press the backspace key, which will hopfully type ^?) then hit enter.

"stty erase CHAR" lets you set the key 'CHAR' to be the key for backspace (left-delete)
 
Old 01-23-2004, 10:29 AM   #3
clockworks
Member
 
Registered: Dec 2003
Location: texas
Distribution: fedora core 1, fedora core 2
Posts: 37

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by drws
...which will hopfully type ^?)...
no, it doesn't...=( when i press "backspace" in the shell, it actually deletes the char that the cursor is on. its only in vim where it prints ^?

thanks again.
 
Old 01-23-2004, 12:07 PM   #4
drws
Member
 
Registered: Jan 2004
Posts: 30

Rep: Reputation: 15
you could try going through different term settings by typing

:set term=ansi (in vim)

there are other terminal types or if you have a .vimrc file in your homedir it should be possible to map keys to backspace in that. (something like set t_ku=^[OA would fix the up arrow key etc. - not sure what the set t_?? is for backspace though)
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
vim backspace problem (no, not THAT one!) mad_pear Linux - Software 3 07-14-2009 12:03 AM
Backspace key in console frankie_DJ Solaris / OpenSolaris 3 08-06-2005 06:04 PM
Backspace key mapping in vi arobic Linux - General 2 06-30-2004 01:30 PM
Getting a ^H on backspace key mlawler Linux - Software 1 04-28-2004 05:56 PM
Backspace Key doesn't work correctly in Vim in Slack 9.1 IBall Slackware 1 04-27-2004 10:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:15 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration