How the Material Is PresentedThe philosophy of this handbook is to give you a good overview of what we feel are vi survival materials for the new user. Learning a new editor, especially an editor with all the options of vi , can seem like an overwhelming task. We have made an effort to present basic concepts and commands in an easy-to-read and logical manner. The following sections describe the conventions used in this handbook. Discussion of vi Commands[i] A picture of a keyboard button, like the one on the left, marks the main discussion of that particular keyboard command or of related commands. You will find a brief introduction to the main concept before it is broken down into task-oriented sections. We then present the appropriate command to use in each case, along with a description of the command and the proper syntax for using it. ConventionsIn syntax descriptions and examples, what you would actually type is
shown in the vi [
Certain examples show the effect of commands typed at the UNIX shell
prompt. In such examples, what you actually type is shown in
$ In examples, italic indicates a comment which is not to be typed. Otherwise, italic emphasizes special terms and indicate the names of files. KeystrokesSpecial keystrokes are shown in a box. For example: iWith a [ESC] Throughout the book, you will also find columns of vi commands and their results:
In the example above, the command
Sometimes vi
commands are issued by pressing the
[CTRL]
key and another key simultaneously.
In the text, this combination keystroke is written within a box (for
example,
[CTRL-G]
).
In examples, it is written by preceding the name of the key
with a caret (^). For example,
Problem ChecklistA problem checklist is included in those sections where you may run into some trouble. You can skim these checklists and go back to them when you actually encounter a problem. All of the problem checklists are also collected in Appendix D , for ease of reference. |
|