From b2b29125d82f217e47056c934de4beda15f34a68 Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Wed, 9 Jan 2019 14:30:08 +0100 Subject: [PATCH] enable format_flowed support --- .vim/after/ftplugin/mail.vim | 10 ++++++++++ .vimrc | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) 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 -- 2.39.2