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