Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!hplabs!hp-sdd!ucsdhub!dcdwest!benson From: benson@dcdwest.UUCP (Peter Benson) Newsgroups: comp.editors Subject: Register Commands in Vi Message-ID: <518@dcdwest.UUCP> Date: 20 Sep 89 00:56:46 GMT Sender: news@dcdwest.UUCP Organization: ITT Defense Communications, San Diego Lines: 28 I have noted with respect the complex and powerful macros people have generated for vi, e.g., centering lines. I have been trying to create a special one myself to no avail. What I am trying to do is create a macro that will act similar to the tags function. In this case, however, I would like to position the cursor at the front of a file name, as in the "s" in system in .so system and have the command :n system be executed. I envision that this will be accomplished by storing ":n " in a register, adding the file name to the register and then executing the command in the register. I have tried numerous ways with no success. Can someone think of a solution? PS I use :!ff -c to center stuff and it works quite well. ff is a useful program. -- Peter Benson | ITT Defense Communications Division (619)578-3080 | 10060 Carroll Canyon Road ucbvax!ucsd!dcdwest!benson | San Diego, CA 92131 dcdwest!benson@UCSD.EDU |