home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.editors
- Path: 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
-
- 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
-