Subject: port-mac68k/9578: I can't get my keyboard mapping in vi editor to work
To: None <gnats-bugs@gnats.netbsd.org>
From: None <jwinter@ticnet.com>
List: netbsd-bugs
Date: 03/08/2000 13:57:39
>Number: 9578
>Category: port-mac68k
>Synopsis: I can't get my keyboard mapping in vi editor to work
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: port-mac68k-maintainer (NetBSD/mac68k Portmaster)
>State: open
>Class: support
>Submitter-Id: net
>Arrival-Date: Wed Mar 8 13:57:01 2000
>Last-Modified:
>Originator: Jim Watson
>Organization:
HisSelf
>Release: Nstbsd 1.4.1
>Environment:
Mac SE/30
>Description:
I want to map the arrow keys on my keyboard so I don't have to use h,j,k &l. When I issue the :map command the vi editor displays the map assignments for page up, down & the arrow keys. However, the assignment for the cursor movement are not correct for a Mac Std or Mac Ext keybord.
The .exrc file contains ^[[A, ^[[B, ^[[C & ^[[D for the functions of UP, DOWN, RIGHT, & LEFT. This is all wrong my Mac uses ^[0A, ^[0B, ^[0C & ^[0D.
How do I assign map and how do I delete existing mappings
>How-To-Repeat:
Type vi .exrc
Type : *** this will place cursor at bottom of screen
Type :map *** this display the map settings
Type : ctl-v{up arrow} j *** this will give the result of :^[0A j
Type <return> *** :^[0A j will be displayed as last line of the map display
the vi display of the maps do not have :'s in display lines
this does not work when I try it
>Fix:
>Audit-Trail:
>Unformatted: