From 99e6ac70028cb4654b9556c4fa2e662358ba9e2c Mon Sep 17 00:00:00 2001 From: Julian Prein Date: Wed, 30 Mar 2022 13:59:10 +0200 Subject: [PATCH] vim:sets: Recognize numbered lists when formatting Add `n` to `formatoptions` to recognize numbered lists when formatting. --- .config/vim/vimrc.d/30-settings.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.config/vim/vimrc.d/30-settings.vim b/.config/vim/vimrc.d/30-settings.vim index 68a4440..456e02b 100644 --- a/.config/vim/vimrc.d/30-settings.vim +++ b/.config/vim/vimrc.d/30-settings.vim @@ -12,8 +12,8 @@ set tabstop=4 set shiftwidth=0 " 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; -" allow formatting with gq. -set formatoptions=tcroqlj +" allow formatting with gq. Recognize numbered lists when formatting. +set formatoptions=tcroqljn " Autoindent new lines set autoindent " Copy structure of the existing lines indent when autoindenting a new line