]> code.delx.au - dotfiles/commitdiff
vim: Don't hard-wrap mail files
authorJames Bunton <jamesbunton@delx.net.au>
Fri, 5 Oct 2012 14:45:15 +0000 (00:45 +1000)
committerJames Bunton <jamesbunton@delx.net.au>
Fri, 5 Oct 2012 14:45:15 +0000 (00:45 +1000)
.vim/filetypes.vim

index 532a52d5b5283994fa135a1bf05c1666ee3b23e2..b5ba1f84e4278dc0ddec4d0ef7ccfd3927ee568e 100644 (file)
@@ -14,7 +14,8 @@ autocmd BufNewFile,BufRead CMakeLists.txt setlocal ft=cmake
 " Set options based on filetypes, overriding the filetype plugin/indent options
 autocmd FileType text call WrapOn()
 autocmd FileType bib setlocal textwidth=78 nocindent smartindent
-autocmd FileType mail setlocal textwidth=72
+autocmd FileType mail setlocal textwidth=0
+autocmd FileType mail call WrapOn()
 autocmd FileType tex call WrapOn()
 autocmd FileType objc setlocal nocindent smartindent
 autocmd FileType cmake setlocal nowrap