]> code.delx.au - dotfiles/blobdiff - .vim/filetypes.vim
screenrc rewrite
[dotfiles] / .vim / filetypes.vim
index 532a52d5b5283994fa135a1bf05c1666ee3b23e2..fbdd84a0e691640f84a29367e4274e4f79609062 100644 (file)
@@ -10,11 +10,15 @@ autocmd BufNewFile,BufRead *.txt setlocal ft=text
 autocmd BufNewFile,BufRead mutt* setlocal ft=mail
 autocmd BufNewFile,BufRead *.tex setlocal ft=tex
 autocmd BufNewFile,BufRead CMakeLists.txt setlocal ft=cmake
+autocmd BufNewFile,BufRead buildfile setlocal ft=ruby
+autocmd BufNewFile,BufRead build.gradle setlocal ft=groovy
 
 " Set options based on filetypes, overriding the filetype plugin/indent options
 autocmd FileType text call WrapOn()
+autocmd FileType markdown 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