Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!olivea!uunet!samsung!know!pluto.hemel.bull.co.uk!malcolm From: malcolm@hemel.bull.co.uk (Malcolm Preen) Newsgroups: comp.editors Subject: how to repeat vi macros Summary: query about whether it is possible to repeat vi macros Keywords: vi macros editors Message-ID: <1991Mar1.194907.13893@hemel.bull.co.uk> Date: 1 Mar 91 19:49:07 GMT Sender: @hemel.bull.co.uk Organization: Bull HN UK Lines: 22 Nntp-Posting-Host: brno Given a vi macro, (for ease of explanation, say :map q jl, yes I know its not alot of use but it will help me illustrate the point) if i repeat that macro by pressing the key a number of times, it works as expected. However, if I use the standard repitition factor method, and enter 5q, then the initial command in the macro is done 5 times, followed by the remainder of the macro. Is there anyway of bracketing the macro so that the whole macro can be performed the required number of times ? Thanks in advance, -- +-----------------------+------------------------------+ |Malcolm Preen |Malcolm.Preen@hemel.bull.co.uk| "Wolf nipple chips, |Bull HN Info. Sys. Ltd.|HM14 UK03 | get them while |Maxted Road |Tel: +44 442 232222 x4367 | they're hot, |Hemel Hempstead |Fax: +44 442 236072 | they're lovely" |Hertfordshire, ENGLAND | | |HP2 7DZ | | +-----------------------+------------------------------+