aboutsummaryrefslogtreecommitdiff
path: root/vim/after/ftplugin/mail/format_flowed.vim
blob: b1b308fb9a012bbf4ba6791e40d260944ec91f62 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
" Only do this when not done yet for this buffer
" Also do nothing if 'compatible' enabled
if exists('b:did_ftplugin_mail_format_flowed') || &compatible
  finish
endif
let b:did_ftplugin_mail_format_flowed = 1
let b:undo_ftplugin = b:undo_ftplugin
      \ . '|unlet b:did_ftplugin_mail_format_flowed'

" Use trailing whitespace to denote continued paragraph
setlocal formatoptions+=w
let b:undo_ftplugin = b:undo_ftplugin
      \ . '|setlocal formatoptions<'