12.3. Online Help and Other Documentationvile currently comes with a single (rather large) ASCII text file, vile.hlp. The :help command (which can be abbreviated to :h) will open a new window on that file. You can then search for information on a particular topic, using standard vi search techniques. Because it is a flat ASCII file, it is also easy to print out and read through. In addition to the help file, vile has a number of built-in commands for displaying information about the facilities and state of the editor. Some of the most useful commands are:
The :apropos, :describe-function, and :describe-key commands all give the descriptive information, plus all other synonyms (since a function may have more than one name, for convenience), all other keys that are bound to it (since many key sequences may be bound to the same function), and whether the command is a "motion" or an "operator." A good example of this is the output of :describe-function next-line: "next-line" ^J j #-B or "down-arrow" or "down-line" or "forward-line" (motion: move down CNT lines ) This shows all four of its names and its three key-bindings. (The sequence #-B is vile's terminal-independent representation of the up-arrow—a complete list of those names is in the help file.) The VILE_STARTUP_PATH environment variable can be set to a colon-separated search path for the help file.[58] The VILE_HELP_FILE environment variable can be used to override the name of the help file (typically vile.hlp).
The combination of online searchable help, built-in command and key descriptions, and command completion makes the help facility straightforward to use. Copyright © 2003 O'Reilly & Associates. All rights reserved. |
|