vim:sets: Recognize numbered lists when formatting
Add `n` to `formatoptions` to recognize numbered lists when formatting.
This commit is contained in:
@@ -12,8 +12,8 @@ set tabstop=4
|
|||||||
set shiftwidth=0
|
set shiftwidth=0
|
||||||
" Auto-wrap text and comments; automatically add comment leader when creating
|
" Auto-wrap text and comments; automatically add comment leader when creating
|
||||||
" new lines and delete it when joining; do not break already too long lines;
|
" new lines and delete it when joining; do not break already too long lines;
|
||||||
" allow formatting with gq.
|
" allow formatting with gq. Recognize numbered lists when formatting.
|
||||||
set formatoptions=tcroqlj
|
set formatoptions=tcroqljn
|
||||||
" Autoindent new lines
|
" Autoindent new lines
|
||||||
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
|
||||||
|
|||||||
Reference in New Issue
Block a user