]> code.delx.au - dotfiles/blob - .vim/filetypes.vim
vim macro :WQ and friends for clumsy people like me :)
[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