Article View: comp.editors
Article #1340Re: help in vi
From: Hans Mulder
Date: Tue, 10 Nov 1992 11:34
Date: Tue, 10 Nov 1992 11:34
18 lines
920 bytes
920 bytes
In <1992Nov10.070239.16698@dragon.acadiau.ca> 911288c@dragon.acadiau.ca (EDwin Chung) writes: > how would i map a key to make :wq to save a copy of > the ordinary file and save a new one ?? Create a file named .exrc in your home directory with the text map K :write! %.bak^M (The ^M should a control-M. Type control-V control-M to produce it.) Then typing a K in command mode will save a backup copy of the buffer in a file named current-file-name.bak . -- Hope this helps, Hans Mulder hansm@cs.kun.nl
Technical Details
Message-ID:
<BxI052.Esv@sci.kun.nl>Path:
arc1-ca.pugleaf.net!sparky!uunet!mcsun!sun4nl!sci.kun.nl!cs.kun.nl!hansmReferences:
<1992Nov10.070239.16698@dragon.acadiau.ca>Show Full Headers
Complete Article Headers
Newsgroups: comp.editors Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!sun4nl!sci.kun.nl!cs.kun.nl!hansm From: hansm@cs.kun.nl (Hans Mulder) Subject: Re: help in vi Message-ID: <BxI052.Esv@sci.kun.nl> Sender: news@sci.kun.nl (NUnet News Owner) Organization: University of Nijmegen, The Netherlands References: <1992Nov10.070239.16698@dragon.acadiau.ca> Date: Tue, 10 Nov 1992 11:34:13 GMT Lines: 18