]> git.madduck.net Git - etc/vim.git/blobdiff - .vim/after/ftplugin/mail.vim

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

enable format_flowed support
[etc/vim.git] / .vim / after / ftplugin / mail.vim
index 21e66d813d39bfbcced9df045d164c75db877fbb..35abab175ab021da6d5822b5ef3dfb0cfa38d823 100644 (file)
@@ -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
@@ -81,3 +91,12 @@ function! s:CheckArea(start, end)
     return (search(a:start,'bcnW')-line('.')) >
         \ (search(a:end,'bnW')-line('.'))
 endfunction
+
+augroup tsperrorinsert
+  au!
+augroup END
+match none /\s\+$/
+augroup listinsert
+  au!
+augroup END
+set nolist