]> code.delx.au - dotfiles/blob - .vim/filetypes.vim
aac6dcc49c4edec8e872ff8bff5b33847fec3f9c
[dotfiles] / .vim / filetypes.vim
1 " Make vim aware of filetypes
2 filetype plugin on
3 filetype plugin indent on
4
5 " Pick up some filetypes from their extensions
6 autocmd BufNewFile,BufRead *.txt setlocal ft=text
7 autocmd BufNewFile,BufRead mutt* setlocal ft=mail
8 autocmd BufNewFile,BufRead *.tex setlocal ft=tex
9
10 " Set options based on filetypes
11 autocmd FileType text setlocal textwidth=78 nosmartindent
12 autocmd FileType mail setlocal textwidth=78 nosmartindent
13 autocmd FileType tex setlocal textwidth=78 nosmartindent
14