Path: utzoo!utgpu!news-server.csri.toronto.edu!clyde.concordia.ca!mcgill-vision!snorkelwacker!tut.cis.ohio-state.edu!zaphod.mps.ohio-state.edu!samsung!uunet!mcsun!hp4nl!tnoibbc!avb From: avb@tnoibbc.UUCP (Andre van Brussel) Newsgroups: comp.editors Subject: VI and parameter substitution in macros Keywords: vi, map Message-ID: <2158@tnoibbc.UUCP> Date: 17 Aug 90 08:03:24 GMT Lines: 22 I have a question of using macros with parameter substitution : E.G. I often use the command : :%g/STRING/d The only thing that changes is the string.If I map this for instance under the # key , I would give the command : # hello, and the macro is invoked as : :%g/hello/d. The next time I invoke it with : # yes, the command would be : %g/yes/d. Is this possible in Vi, and HOW ?? - +---------+------------------+----------------------------------+ | Andre | TNO - IBBC | INTERNET => avb@tnoibbc | | van | PO-box 49 | DOMAIN => avb@ibbc.tno.nl | | Brussel | 2600 AA Delft | FAX => +31 15 843990 | | | the Netherlands | VOICE => +31 15 842019 | +---------+------------------+----------------------------------+