2008 Oct 18
Automatic indentation is enabled with the command: :set autoindent The shift is the value of shiftwidth which has a default of 8. Four special input sequences affect automatic indentation: ^T Add one level of indentation; typed in insert mode ^D Remove one level of indentation; typed in insert mode ^ ^D Shift the cursor back to the beginning of the line, but only for the current line 0 ^D Shift the cursor back to the beginning of the line, and reset the autoindent level to 0 Two commands exist for shifting source code: << Shift a line left shiftwidth spaces >> Shift a line right shiftwidth spaces
2005-2008