1Article 2846 of alt.sources: 2Path: oce-rd1!hp4nl!mcsun!uunet!munnari.oz.au!metro!otc!gregm 3From: [email protected] (Greg McFarlane) 4Newsgroups: alt.sources 5Subject: VI SOLVES MAZE (commented macros) 6Message-ID: <[email protected]> 7Date: 10 Feb 91 23:31:02 GMT 8Sender: [email protected] 9Reply-To: [email protected] (Greg McFarlane) 10Organization: OTC Development Unit, Australia 11Lines: 464 12 13Submitted-by: [email protected] 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. 38