Vi: Difference between revisions
→Basics
(→Basics) |
(→Basics) |
||
Line 5:
Crtl + c or Esc exit insert mode
ZZ or :x or :wr save & exit
set number Displays line numbers
set nonumber Removes line numbers
set autoindent Automatic indentation in insert mode
set noautoindent Removes the automatic indentation feature in insert mode
se tabstop=3 Sets the number of spaces by which the tab indents during editing
syntax on Turns on highlighting of syntax
syntax off Turns off highlighting of syntax
set shiftwidth=4 The size of the indent, measured in spaces
= Intermediate =
|