aboutsummaryrefslogtreecommitdiff
path: root/.vim/filetype.vim
blob: c29f97e95da3afcd57953075b72451084f7db733 (plain)
1
2
3
4
5
6
7
8
9
10
augroup filetypedetect
    autocmd BufRead,BufNewFile *.org setfiletype org
    autocmd BufRead,BufNewFile *nginx.conf setfiletype nginx
    autocmd BufRead,BufNewFile /etc/nginx*.conf setfiletype nginx
    autocmd BufRead,BufNewFile *mutt-* setfiletype mail
augroup end

autocmd FileType html setlocal shiftwidth=2 softtabstop=2 expandtab
autocmd FileType css setlocal shiftwidth=2 softtabstop=2 expandtab
autocmd FileType javascript setlocal shiftwidth=2 softtabstop=2 expandtab