vim:sets: Recognize numbered lists when formatting

Add `n` to `formatoptions` to recognize numbered lists when formatting.
This commit is contained in:
2022-03-30 13:59:10 +02:00
parent 4ebc729c99
commit 99e6ac7002

View File

@@ -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