🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.editors
Article #3377

Re: tough bug in vi

#3377
From: Bjorn Engsig
Date: Thu, 24 Nov 1988 11:21
16 lines
1288 bytes
In article <11500001@uxh.cso.uiuc.edu>, phil@uxh.cso.uiuc.edu writes:
> 
> I go into insert mode with "i" and type in some new text.  I then backspace
> over that text with ^H (backspace).  The text is no longer in the buffer
> but is still showing on the screen.

You can use a map! <key> ^H ^H, where a good choise for key could be
DEL, if this is not your interupt.  Else find some other key that is available.
The map! command is used to change the function of a key in insert mode,
and the <backspace> <space> <backspace> will provide you with exactly what
you want.  If you put the map! in your .exrc, remember that you can only enter
^H (and possibly the <key>) by preceeding it with ^V.
-- 
Bjorn Engsig, ORACLE Europe      \ /    "Hofstaedter's Law:  It always takes
 ..!uunet!mcvax!orcenl!bengsig    X      longer than you expect, even if you
phone:  +31 21 59 56 411         / \     take into account Hofstaedter's Law"
Technical Details
Message-ID: <205.nlunix6@orcenl.uucp>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!mcvax!hp4nl!orcenl!bengsig
References: <11500001@uxh.cso.uiuc.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!mcvax!hp4nl!orcenl!bengsig
From: bengsig@orcenl.uucp (Bjorn Engsig)
Newsgroups: comp.editors
Subject: Re: tough bug in vi
Summary: use a map!
Message-ID: <205.nlunix6@orcenl.uucp>
Date: 24 Nov 88 11:21:03 GMT
References: <11500001@uxh.cso.uiuc.edu>
Organization: ORACLE Europe, The Netherlands
Lines: 16