xref: /vim-8.2.3635/runtime/macros/maze/poster (revision 071d4279)
1*071d4279SBram MoolenaarArticle 2846 of alt.sources:
2*071d4279SBram MoolenaarPath: oce-rd1!hp4nl!mcsun!uunet!munnari.oz.au!metro!otc!gregm
3*071d4279SBram MoolenaarFrom: [email protected] (Greg McFarlane)
4*071d4279SBram MoolenaarNewsgroups: alt.sources
5*071d4279SBram MoolenaarSubject: VI SOLVES MAZE (commented macros)
6*071d4279SBram MoolenaarMessage-ID: <[email protected]>
7*071d4279SBram MoolenaarDate: 10 Feb 91 23:31:02 GMT
8*071d4279SBram MoolenaarSender: [email protected]
9*071d4279SBram MoolenaarReply-To: [email protected] (Greg McFarlane)
10*071d4279SBram MoolenaarOrganization: OTC Development Unit, Australia
11*071d4279SBram MoolenaarLines: 464
12*071d4279SBram Moolenaar
13*071d4279SBram MoolenaarSubmitted-by: [email protected]
14*071d4279SBram MoolenaarArchive-name: maze_solving_vi_macros
15*071d4279SBram Moolenaar
16*071d4279SBram MoolenaarA real working model. See it walk the maze in front of your very own eyes.
17*071d4279SBram Moolenaar
18*071d4279SBram MoolenaarTo prove that you can do anything in vi, I wrote a couple of macros that
19*071d4279SBram Moolenaarallows vi to solve mazes. It will solve any maze produced by maze.c
20*071d4279SBram Moolenaarthat was posted to the alt.sources last month. (Maze.c is also included
21*071d4279SBram Moolenaarin this posting as well as an example of its output.)
22*071d4279SBram Moolenaar
23*071d4279SBram MoolenaarThe uncommented version of the macros was sent to alt.sources last month.
24*071d4279SBram MoolenaarHowever, so many people mailed me requesting the commented version of the
25*071d4279SBram Moolenaarmacros that I decided to post it. I have made some modifications to the
26*071d4279SBram Moolenaaroriginal macros to make them easier to follow and also after I learnt
27*071d4279SBram Moolenaarthat you can escape the special meaning of '|' in macros by using '^V|'.
28*071d4279SBram Moolenaar
29*071d4279SBram MoolenaarSave this article and unshar it. Then read maze.README.
30*071d4279SBram Moolenaar
31*071d4279SBram MoolenaarAfter studying these macros, anyone who cannot write an emacs emulator
32*071d4279SBram Moolenaarin vi macros should just curl up and :q!.
33*071d4279SBram Moolenaar
34*071d4279SBram MoolenaarComing soon to a newsgroup near you: "Vi macros solve Tower of Hanoi",
35*071d4279SBram Moolenaarand a repost of the original "Turing Machine implemented in Vi macros"
36*071d4279SBram Moolenaar
37*071d4279SBram MoolenaarAnyone who has a version of these macros for edlin or nroff, please post.
38