To start vi:
Command | Effect |
---|---|
vi filename | edit filename starting at line 1 |
vi +n filename | edit filename beginning at line n |
vi +filename | edit filename beginning at the last line |
vi -r filename | recover filename after a system crash |
What are the 3 kinds of commands in vi?
While using vi, at any one time you are in one of three modes of operation. These modes are known as "command mode," "insert mode," and "last line mode." When you start up vi, you are in "command mode." This mode allows you to use certain commands to edit files or to change to other modes.