diff options
| author | Anton Bobov <abobov@gmail.com> | 2015-05-18 19:45:04 +0500 |
|---|---|---|
| committer | Anton Bobov <abobov@gmail.com> | 2015-05-18 19:45:04 +0500 |
| commit | 0bb8622ac68b886f64270077905f3d8498c9ecc1 (patch) | |
| tree | f9e510a0b79bd52f4b9701b75211bb2aee498e71 /files | |
| parent | 15e70b62a8fc8921c0b15f63ce8270d482c5b359 (diff) | |
Set flowed format for mail.
Diffstat (limited to 'files')
| -rw-r--r-- | files/.mutt/muttrc | 1 | ||||
| -rw-r--r-- | files/.vim/after/ftplugin/mail.vim | 47 |
2 files changed, 2 insertions, 46 deletions
diff --git a/files/.mutt/muttrc b/files/.mutt/muttrc index a12fe6a..6d2c984 100644 --- a/files/.mutt/muttrc +++ b/files/.mutt/muttrc @@ -46,6 +46,7 @@ set charset=utf-8 # terminal charset set allow_8bit set rfc2047_parameters set mail_check=120 # check for new mail every 120 seconds +set text_flowed=yes # allow paragraphs re-flow set edit_headers # change headers with body in editor diff --git a/files/.vim/after/ftplugin/mail.vim b/files/.vim/after/ftplugin/mail.vim index d5f021b..ff7b8a7 100644 --- a/files/.vim/after/ftplugin/mail.vim +++ b/files/.vim/after/ftplugin/mail.vim @@ -5,49 +5,4 @@ set imsearch=1 set iminsert=1 nohlsearch set colorcolumn=+1 - -" par options -" -" e[expel] -" -" If expel is 1, superfluous lines are withheld from the output . -" Defaults to 0 . -" -" g[guess] -" -" If guess is 1, then when par is choosing line breaks, whenever -" it encounters a curious word followed by a capitalized word, it -" takes one of two special actions. If the two words are separated -" by a single space in the input, they will be merged into one -" word with an embedded non-breaking space. If the two words are -" separated by more than one space, or by a line break, par will -" insure that they are separated by two spaces, or by a line -" break, in the output. Defaults to 0. -" -" q[quote] -" -" If quote is 1, then before each segment is scanned for bodiless -" lines, par supplies vacant lines between different quotation -" nesting levels as follows: For each pair of adjacent lines in -" the segment, (scanned from the top down) which have different -" quoteprefixes, one of two actions is taken. If invis is 0, and -" either line consists entirely of quote characters and spaces -" (or is empty), that line is truncated to the longest common -" prefix of the two lines (both are truncated if both qualify). -" Otherwise, a line consisting of the longest common prefix of -" the two lines is inserted between them. quote also affects the -" default value of prefix. Defaults to 0. (See also the p and i -" options.) -" -vmap <F4> :!par 72qeg<CR>gv:s/\v\s*$//<CR>:nohl<CR> - -function! <SID>DeleteTrailingWhitespace() - if ! &binary - let l:l = line('.') - let l:c = col('.') - silent! :%s/[\r \t]\+$// - call histdel('search', -1) - call cursor(l:l, l:c) - endif -endfunction -autocmd BufWritePre,FileWritePre * call <SID>DeleteTrailingWhitespace() +set formatoptions+=aw |
