Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!ukc!slxsys!ibmpcug!dylan From: dylan@ibmpcug.co.uk (Matthew Farwell) Newsgroups: comp.editors Subject: Re: vi macros Keywords: macros meta chars Message-ID: <1991Jan29.233028.11106@ibmpcug.co.uk> Date: 29 Jan 91 23:30:28 GMT References: <4625@male.EBay.Sun.COM> <1991Jan25.075031.11182@convex.com> <1991Jan28.164208.28876@ddsw1.MCS.COM> Reply-To: dylan@ibmpcug.CO.UK (Matthew Farwell) Organization: The IBM PC User Group, UK. Lines: 27 In article <1991Jan28.164208.28876@ddsw1.MCS.COM> dattier@ddsw1.MCS.COM (David W. Tamkin) writes: >tchrist@convex.COM (Tom Christiansen) wrote in ><1991Jan25.075031.11182@convex.com>: >| From the keyboard of carl@mugwump.UK.Sun.COM (Carl Johnson - Sun EHQ - MIS): >| : I am also having problems with the automatic commenting macro :- >[Carl quotes a previous recommendation by Tom:] >| : " from edit mode, this comments a line >| : map ^X ^i/* ^[A */^[^ >[Carl asks:] >| : I know the ^X is a control char but is the ^i? If so, how do I >| : get it? I tried the usual way of hitting ctrl-V first but this didn't work. >[Tom explains:] > >| the ^i is a ^ (caret) plus an i. > >vi's I does the same thing is ^i, is shorter to type, and doesn't confuse >people in print. or you could use 0, which takes you to the first character on a line, whereas ^ takes you to the first non-whitespace character. Dylan. -- Matthew J Farwell | Email: dylan@ibmpcug.co.uk The IBM PC User Group, PO Box 360,| ...!uunet!ukc!ibmpcug!dylan Harrow HA1 4LQ England | CONNECT - Usenet Access in the UK!! Phone: +44 81-863-1191 | Sun? Don't they make coffee machines?