1 Article 2846 of alt.sources:
2 Path: oce-rd1!hp4nl!mcsun!uunet!munnari.oz.au!metro!otc!gregm
3 From: gregm@otc.otca.oz.au (Greg McFarlane)
4 Newsgroups: alt.sources
5 Subject: VI SOLVES MAZE (commented macros)
6 Message-ID: <2289@otc.otca.oz>
7 Date: 10 Feb 91 23:31:02 GMT
8 Sender: news@otc.otca.oz
9 Reply-To: gregm@otc.otca.oz.au (Greg McFarlane)
10 Organization: OTC Development Unit, Australia
13 Submitted-by: gregm@otc.otca.oz.au
14 Archive-name: maze_solving_vi_macros
16 A real working model. See it walk the maze in front of your very own eyes.
18 To prove that you can do anything in vi, I wrote a couple of macros that
19 allows vi to solve mazes. It will solve any maze produced by maze.c
20 that was posted to the alt.sources last month. (Maze.c is also included
21 in this posting as well as an example of its output.)
23 The uncommented version of the macros was sent to alt.sources last month.
24 However, so many people mailed me requesting the commented version of the
25 macros that I decided to post it. I have made some modifications to the
26 original macros to make them easier to follow and also after I learnt
27 that you can escape the special meaning of '|' in macros by using '^V|'.
29 Save this article and unshar it. Then read maze.README.
31 After studying these macros, anyone who cannot write an emacs emulator
32 in vi macros should just curl up and :q!.
34 Coming soon to a newsgroup near you: "Vi macros solve Tower of Hanoi",
35 and a repost of the original "Turing Machine implemented in Vi macros"
37 Anyone who has a version of these macros for edlin or nroff, please post.