Path: msuinfo!harrisot From: harrisot@egr.msu.edu (Timothy Harrison) Newsgroups: msu.misc Subject: vi100 Date: 3 Mar 1994 02:58:52 GMT Organization: Michigan State University Lines: 37 Message-ID: <2l3jpc$14qi@msuinfo.cl.msu.edu> NNTP-Posting-Host: willow.egr.msu.edu Keywords: vi,helpWelcome to VI 100,
In another article I discussed moving the cursor forward in vi, a very advanced topic that is _not_ required to pass this course. To pass ``Editors 101'' you only need to be able to answer the following question:
Some <censored> program started vi for me. I typed a few characters before I figured out what happened. Now everything is fubar. What do I do?
The answer is:
- Check the settings of your EDITOR and VISUAL environment variables. - Delete the program from your hard disk (required by ISO 9001). - Find and shoot the programmer (optional). - Type ``ESC : q ! RET''.
The last sequence is the command for leaving vi. That is all you will need to know about vi, ever. You might find the command somewhat unintuitive, but actually it is not. All vi commands have nice mnemonics. The mnemonic for leaving vi is:
<ESC>ape this <COLON> thing, // The colon-thing is a nickname for vi. <Q>uit and do <NOT> // C slang for `!'. Here used in the meaning `never'. <RET>urn.
That was all for this lecture. Todays exercises will consist of entering and leaving vi mode in emacs. Do _not_ try this with the real thing. A video demonstration will be available later for interested students.
May you never need the knowledge you have just gained.
Tim
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - The Dual Lives of Todd E. Van Hoosear - ``''' Graduate Assistant, | Graduate Student, (._.) Hypermedia and Instructional | Department of Communication, (_) Support Services, | Michigan State University `---' MSU Computer Laboratory | East Lansing, MI 48824 Internet ID: vanhoose@msu.edu OR: vanhoose@lalaland.cl.msu.edu BITnet ID: VANHOOSE@msu My Mac: lalaland.cl.msu.edu ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~