From: martin f. krafft Date: Wed, 9 Jan 2019 13:30:08 +0000 (+0100) Subject: enable format_flowed support X-Git-Url: https://git.madduck.net/etc/vim.git/commitdiff_plain/b2b29125d82f217e47056c934de4beda15f34a68?ds=inline;hp=352d9aaa76c748c8f12f3f23cfc939607eb81284 enable format_flowed support --- diff --git a/.vim/after/ftplugin/mail.vim b/.vim/after/ftplugin/mail.vim index da47898..35abab1 100644 --- a/.vim/after/ftplugin/mail.vim +++ b/.vim/after/ftplugin/mail.vim @@ -2,6 +2,16 @@ setlocal textwidth=68 setlocal formatoptions-=o setlocal formatoptions-=r +" for format_flowed +"setlocal formatoptions+=aw +"setlocal nolist +"augroup listinsert +" autocmd! +"augroup end +"augroup tsperrorinsert +" autocmd! +"augroup end + "setlocal spell " Dynamically set format options, depending on where you are in a diff --git a/.vimrc b/.vimrc index 6f3d5f6..68ec6af 100644 --- a/.vimrc +++ b/.vimrc @@ -673,7 +673,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+)[\]:.)}\t/-]\s|[-\*.·→+]\s)\s*' +let &flp='^\v\s*%(%(\a{1,2}|\d+)[]:.)}\t/-]|[-*.·→+])\s+' " formatexpr " expression used for "gq" to format lines