LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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
 
LinkBack Search this Thread
Old 01-23-2004, 10: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, 11: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, 11: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, 01: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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are 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 01:03 AM
Backspace key in console frankie_DJ Solaris / OpenSolaris 3 08-06-2005 07:04 PM
Backspace key mapping in vi arobic Linux - General 2 06-30-2004 02:30 PM
Getting a ^H on backspace key mlawler Linux - Software 1 04-28-2004 06:56 PM
Backspace Key doesn't work correctly in Vim in Slack 9.1 IBall Slackware 1 04-27-2004 11:07 PM


All times are GMT -5. The time now is 12:04 PM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration