]> code.delx.au - dotfiles/blob - .vim/filetypes.vim
1e7200db858e8949702de451b3d4b143e1677f9a
[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
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
13