From: martin f. krafft Date: Sat, 23 Mar 2019 22:19:08 +0000 (+1300) Subject: fix numbered line formatting X-Git-Url: https://git.madduck.net/etc/vim.git/commitdiff_plain/80dda625da425683a045c649d086197fdac91424?ds=sidebyside;hp=-c fix numbered line formatting --- 80dda625da425683a045c649d086197fdac91424 diff --git a/.vim/after/ftplugin/mail.vim b/.vim/after/ftplugin/mail.vim index 2ecfa74..053758e 100644 --- a/.vim/after/ftplugin/mail.vim +++ b/.vim/after/ftplugin/mail.vim @@ -1,8 +1,10 @@ setlocal textwidth=68 setlocal formatoptions-=o setlocal formatoptions-=r +setlocal formatoptions-=l setlocal formatoptions+=a setlocal formatoptions+=w +setlocal formatoptions+=n "setlocal spell diff --git a/.vimrc b/.vimrc index 16de13a..b20d808 100644 --- a/.vimrc +++ b/.vimrc @@ -670,7 +670,7 @@ set fo=tcroqn1l " pattern to recognize a numbered list " (local to buffer) " set flp=^\\s*\\d\\+[\\]:.)}\\t\ ]\\s* -let &flp='^\v\s*((\a|\d+)[]:.)}/-]\s|[-\*.·→+]\s)\s*' +let &flp='^\v\s*(((\a|\d+)[]:.)}/-])+|[-\*.·→+])\s+' " formatexpr " expression used for "gq" to format lines