OESF Portables Forum

Everything Else => General Support and Discussion => Zaurus General Forums => Archived Forums => Software => Topic started by: ewen on January 13, 2004, 07:18:27 am

Title: vi backspace key mapping
Post by: ewen on January 13, 2004, 07:18:27 am
Hi,

Could anyone let me know how to map the backspace key so that it works in vi and vim? I swear I found a tip on how to do that somewhere here before (I\'m sure I had this working before too) but recently I had to reset my zaurus, and now I can\'t remember or find out what to do...

Any help greatly appreciated!

Cheers,

/e
Title: vi backspace key mapping
Post by: raybert on January 13, 2004, 10:55:03 am
IIRC, you have to put \"TERM=linux\" in your .profile

~ray
Title: vi backspace key mapping
Post by: ewen on January 15, 2004, 04:32:25 am
Quote
IIRC, you have to put \"TERM=linux\" in your .profile

~ray
Ah -- figured it out --  

stty erase ^?

did the trick
Title: vi backspace key mapping
Post by: magicbb on August 19, 2005, 03:31:48 am
Quote
Quote
IIRC, you have to put "TERM=linux" in your .profile

~ray
Ah -- figured it out --  

stty erase ^?

did the trick
[div align=\"right\"][a href=\"index.php?act=findpost&pid=5744\"][{POST_SNAPBACK}][/a][/div]

should i put "TERM=linux" or stty erase ^? in .profile?
i am using c1000, the .profile for root is not writable, i think it's in the rom, how can i change it
Title: vi backspace key mapping
Post by: samxiao on August 19, 2005, 10:17:21 am
why not use "nano" or "pico" ?
Title: vi backspace key mapping
Post by: sriley on August 25, 2005, 11:57:38 am
Quote
why not use "nano" or "pico" ?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=92492\"][{POST_SNAPBACK}][/a][/div]


Because those of us that work on other *nix systems can be sure we'll find vi or vim on them.  Why switch from editor to editor on different machines?
Title: vi backspace key mapping
Post by: bluedevils on August 25, 2005, 01:58:48 pm
You are probably not in bash.  I usually set the TERM because vi isn't working properly and stty if my shell doesn't have a backspace.  If setting the TERM helps the backspace problem throughout, then I say go for it.