![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | 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 !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Using arrow keys | cooldude | SUN 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 02:45 AM |
| Trapping Arrow keys | nageshrc | Shell Programming and Scripting | 1 | 11-30-2001 03:36 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
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 |
|
||||
|
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 |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|