This repository has been archived on 2021-04-06. You can view files and clone it, but cannot push or open issues or pull requests.
dotfiles/home/.vim/ftdetect/filetypes.vim
2018-03-19 13:49:05 +00:00

31 lines
1.5 KiB
VimL

" Set unknown filetypes
au BufRead,BufNewFile *.scad setfiletype openscad
" Set properties
autocmd Filetype arduino setlocal ts=2 sw=2 sts=2 expandtab
autocmd Filetype cpp setlocal ts=4 sw=4 sts=4 expandtab
autocmd Filetype c setlocal ts=4 sw=4 sts=4 expandtab
autocmd Filetype css setlocal ts=2 sw=2 sts=2 expandtab
autocmd Filetype dart setlocal ts=2 sw=2 sts=2 expandtab
autocmd Filetype elm setlocal ts=2 sw=2 sts=2 expandtab
autocmd Filetype go setlocal ts=4 sw=4 sts=4
autocmd Filetype html setlocal ts=2 sw=2 sts=2 expandtab
autocmd Filetype html.twig setlocal ts=2 sw=2 sts=2 expandtab
autocmd Filetype javascript setlocal ts=2 sw=2 sts=2 expandtab
autocmd Filetype jinja setlocal ts=2 sw=2 sts=2 expandtab
autocmd Filetype json setlocal ts=2 sw=2 sts=2 expandtab
autocmd Filetype less setlocal ts=2 sw=2 sts=2 expandtab
autocmd Filetype lua setlocal ts=4 sw=4 sts=4 expandtab
autocmd Filetype markdown setlocal ts=2 sw=2 sts=2 expandtab
autocmd Filetype openscad setlocal ts=2 sw=2 sts=2 expandtab
autocmd Filetype php setlocal ts=2 sw=2 sts=2 expandtab
autocmd Filetype python setlocal ts=4 sw=4 sts=4 expandtab
autocmd Filetype scss setlocal ts=2 sw=2 sts=2 expandtab
autocmd Filetype shell setlocal ts=4 sw=4 sts=4 expandtab
autocmd Filetype svg setlocal ts=2 sw=2 sts=2 expandtab
autocmd Filetype tex setlocal ts=2 sw=2 sts=2 expandtab
autocmd Filetype toml setlocal ts=4 sw=4 sts=4 expandtab
autocmd Filetype vue setlocal ts=2 sw=2 sts=2 expandtab
autocmd Filetype xml setlocal ts=2 sw=2 sts=2 expandtab
autocmd Filetype yaml setlocal ts=2 sw=2 sts=2 expandtab