Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!munnari.oz.au!bruce!goanna!minyos.xx.rmit.oz.au!s887212 From: s887212@minyos.xx.rmit.oz.au (Stephen Riehm [Romulis]) Newsgroups: comp.editors Subject: Re: switch vi modes in mapping Keywords: vi map Message-ID: <1991Feb24.112451.11548@minyos.xx.rmit.oz.au> Date: 24 Feb 91 11:24:51 GMT References: <1991Feb12.235224.9934@novell.com> Organization: RMIT Computer Centre, Melbourne Australia. Lines: 27 tporczyk@na.excelan.com (Tony Porczyk) writes: >The News Manager) >Nntp-Posting-Host: na >Organization: Novell, San Jose CA. >Date: Tue, 12 Feb 1991 23:52:24 GMT >Quick question for vi users. When I map my F1 function keys in .exrc: >map ^[OP :!clear;more .helpfile^M >map ^[OP ^[:!clear;more .helpfile^M this is fine but for one thing..... there are two kinds of :map's :map for command mode mappings, :map! for insert mode mappings so for your insert mode help you may like to use the following :map! ^[OP ^[:!clear;more .helpfile^M I however would use :map! ^[OP ^[:!clear;more .helpfile^M^Ma which would stop the "hit return to continue" message from waiting for you and would then continue inserting -- catchya thanx in advance under new management