📄 poster
字号:
Article 2846 of alt.sources:Path: oce-rd1!hp4nl!mcsun!uunet!munnari.oz.au!metro!otc!gregmFrom: gregm@otc.otca.oz.au (Greg McFarlane)Newsgroups: alt.sourcesSubject: VI SOLVES MAZE (commented macros)Message-ID: <2289@otc.otca.oz>Date: 10 Feb 91 23:31:02 GMTSender: news@otc.otca.ozReply-To: gregm@otc.otca.oz.au (Greg McFarlane)Organization: OTC Development Unit, AustraliaLines: 464Submitted-by: gregm@otc.otca.oz.auArchive-name: maze_solving_vi_macrosA real working model. See it walk the maze in front of your very own eyes.To prove that you can do anything in vi, I wrote a couple of macros thatallows vi to solve mazes. It will solve any maze produced by maze.cthat was posted to the alt.sources last month. (Maze.c is also includedin this posting as well as an example of its output.)The uncommented version of the macros was sent to alt.sources last month.However, so many people mailed me requesting the commented version of themacros that I decided to post it. I have made some modifications to theoriginal macros to make them easier to follow and also after I learntthat you can escape the special meaning of '|' in macros by using '^V|'.Save this article and unshar it. Then read maze.README.After studying these macros, anyone who cannot write an emacs emulatorin vi macros should just curl up and :q!.Coming soon to a newsgroup near you: "Vi macros solve Tower of Hanoi",and a repost of the original "Turing Machine implemented in Vi macros"Anyone who has a version of these macros for edlin or nroff, please post.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -