🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.editors
Article #3

Delete key map in vi

#3
From: Linda A. Malcor
Date: Tue, 27 Oct 1992 14:01
20 lines
1024 bytes
I am trying to map (and map!) the delete key on my system to delete.

Example:
:map! {ESC seq for delete} ^[lxi

The problem I run into is that using the "l" to reverse the effect of
escaping out of input mode works great everywhere except the beginning
of line. At the begining of a line I end up killing the wrong character!
Example:
123456
^Cursor at beginning of the line in input mode and delete map! is hit.
13456
 ^Cursor and wrong results

 Help! I could be aproching this from the wrong angle.

 Daniel Malcor
 Los Angeles Times - Editorial Library
 (213) 237-4590
 Internet: legend@cheshire.oxy.edu
Technical Details
Message-ID: <1992Oct27.140128.22124@cheshire.oxy.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!spool.mu.edu!sol.ctr.columbia.edu!usc!cheshire.oxy.edu!legend

Show Full Headers
Complete Article Headers
Newsgroups: comp.editors
Path: arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!spool.mu.edu!sol.ctr.columbia.edu!usc!cheshire.oxy.edu!legend
From: legend@cheshire.oxy.edu (Linda A. Malcor)
Subject: Delete key map in vi
Message-ID: <1992Oct27.140128.22124@cheshire.oxy.edu>
Organization: Occidental College, Los Angeles, CA 90041 USA.
Date: Tue, 27 Oct 1992 14:01:28 GMT
Lines: 20