Vi: Difference between revisions
→Basics
(→Basics) |
(→Basics) |
||
Line 1:
= Basics =
*Modes:
i insert
Crtl + c or Esc exit insert mode
ZZ or :x or :wr save & exit
*EX Commands:
set number Displays line numbers
set nonumber Removes line numbers
Line 14 ⟶ 15:
syntax off Turns off highlighting of syntax
set shiftwidth=4 The size of the indent, measured in spaces
*The .vimrc file
The EX commands (those that you key in after typing : in the Vi editor), which you want to execute whenever you start the Vi editor, can be saved in the .vimrc file in your home directory.
= Intermediate =
|