|
google site
|
|||||||
| Forums | Register | Blog | Man Pages | Forum Rules | Links | Albums | FAQ | Users | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
![]() |
|
|
Search this Thread |
|
#1
|
|||
|
|||
|
Hi
I am working on SunOS 5.10 from remote terminal using putty. Also echo $TERM xterm In vi editor when in insert mode arrow keys are not working for cursor movement instead they print A B C and D. Please help. thanks ravs |
| Sponsored Links | ||
|
|
|
#2
|
||||
|
||||
|
before invoking vi give, set TERM=vt100
|
|
#3
|
||||
|
||||
|
OR
use the "h j k l " for navigation. export EDITOR=vi also helps |
|
#4
|
|||
|
|||
|
Problem still exists
Hi
I tried both set TERM=vt100 and export EDITOR but nothing is working Thanks and regards Ravs |
|
#5
|
|||
|
|||
|
http://hea-www.harvard.edu/~fine/Tech/vi.html
Title contains entire bible of vi command keys
Below are extract for your solution :map! ^? ^H :map! ^[OA ^[ka :map! ^[OB ^[ja :map! ^[OC ^[la :map! ^[OD ^[ha Above entries you put into $HOME/.exrc file. First entry is to make DELETE work as Backspace and Remaining/Subsequent 4 entries are traversal into file using Arrow-Key. All 5 entries are applicable for "Editing" mode of vi editor. Below are guideline to type all CONTROL characters ^? = CTRL-V + DELETE ^H = CTRL-V + BACKSPACE ^[OA = CTRL-V + UP-Arrow ^[ka = CTRL-V + ESCAPE + k + a ^[OB = CTRL-V + Down-Arrow ^[ja = CTRL-V + ESCAPE + j + a ^[OC = CTRL-V + Right-Arrow ^[la = CTRL-V + ESCAPE + l + a ^[OD = CTRL-V + Left-Arrow ^[ha = CTRL-V + ESCAPE + h + a |
|
#6
|
||||
|
||||
|
Hi. I don't use PuTTY much, but I was able to duplicate the problem. The solution that worked for me was to change a setting in the Features panel. This session was from PuTTY running on a Microsoft W2K box connected to a Solaris 10 box. The version of PuTTY is: Code:
2005-11-26:r6470 After you have logged in: 1) right click on the Title bar 2) Mouse down and select Change Settings 3) Click Features from the left side 4) Uncheck: Disable application keypad mode 5) Click the Apply button If this works, you may want to save the new session settings. You may be able to do this without logging in -- I didn't test that. In my situation, I have none of the features checked. I tested the behavior by checking and unchecking the box and it seemed to cause your symptoms to appear and disappear. The other solutions posted may also work, but this seems like an easy solution. Best wishes ... cheers, drl |
|
#7
|
|||
|
|||
|
Quote:
Of the responses above, this is your best option. HTH |
| Sponsored Links | ||
|
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Using arrow keys | cooldude | Solaris | 4 | 06-13-2008 11:51 AM |
| How to read arrow keys on really old bash? | simonb | Shell Programming and Scripting | 1 | 05-01-2006 10:27 AM |
| how do I get my arrow keys to work for looking thru my PREVIOUS UNIX COMMANDS | spotnis | UNIX for Dummies Questions & Answers | 11 | 09-14-2005 01:22 AM |
| arrow keys / special keys | raguramtgr | UNIX for Dummies Questions & Answers | 3 | 02-20-2004 01:45 AM |
| Trapping Arrow keys | nageshrc | Shell Programming and Scripting | 1 | 11-30-2001 02:36 PM |