Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!newstop!male!mugwump.UK.Sun.COM!carl From: carl@mugwump.UK.Sun.COM (Carl Johnson - Sun EHQ - MIS) Newsgroups: comp.editors Subject: vi macros Keywords: macros meta chars Message-ID: <4625@male.EBay.Sun.COM> Date: 24 Jan 91 15:37:49 GMT Sender: news@male.EBay.Sun.COM Lines: 32 Greetings, I finally got around to looking at Tom Christiansen's (Thanks Tom) instructive .exrc file which he posted a while back, however, I am having a some trouble with the meta macros which do not seem to accept the '\' char, here is the bit of code :- " META MACROS, all begin with meta-key '\' ; more later in file " map ^V \ " so can use both ^I and \ for meta-key " map * i^M^[ " split line " map \/ dePo/\<^V^[pA\>^V^["wdd@w " find current word, uses w buffer " map \w :w^M " write out the file " All I get is a beep from the keyboard whenever I try to use one of these. I am also having problems with the automatic commenting macro :- " " from edit mode, this comments a line map ^X ^i/* ^[A */^[^ " 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. I get the feeling I am missing something obvious, any help or RTFM's greatfully appreciated. Email me and I will summarise. Cheers, Carl.