1 " Make vim aware of filetypes
3 filetype plugin indent on
5 " Pick up some filetypes from their extensions
6 autocmd BufNewFile,BufRead *.txt setlocal ft=text
7 autocmd BufNewFile,BufRead mutt* setlocal ft=mail
9 " Set options based on filetypes
10 autocmd FileType text setlocal textwidth=78 nosmartindent
11 autocmd FileType mail setlocal textwidth=78 nosmartindent
12 autocmd FileType tex setlocal textwidth=78 nosmartindent