vim:setts: Set cindent & preserveindent
For slightly better indentation.
This commit is contained in:
@@ -31,6 +31,10 @@ set formatoptions=tcro/qlnj
|
|||||||
set autoindent
|
set autoindent
|
||||||
" Copy structure of the existing lines indent when autoindenting a new line
|
" Copy structure of the existing lines indent when autoindenting a new line
|
||||||
set copyindent
|
set copyindent
|
||||||
|
" Enables C program indenting
|
||||||
|
set cindent
|
||||||
|
" Preserve as much of the indentation as possible when changing it
|
||||||
|
set preserveindent
|
||||||
" Keep lines under 80 characters.
|
" Keep lines under 80 characters.
|
||||||
set textwidth=80
|
set textwidth=80
|
||||||
" Do not insert two spaces before a new sentence when formatting
|
" Do not insert two spaces before a new sentence when formatting
|
||||||
|
|||||||
Reference in New Issue
Block a user