vim: add autocmds for go and rust

feature/improve-speed
bretello 2021-10-01 16:56:32 +02:00
parent 9bdbd1774d
commit ea6dbc555e
Signed by: brethil
GPG Key ID: 876AAC6290170FE7
1 changed files with 4 additions and 1 deletions

View File

@ -58,7 +58,10 @@ autocmd FileType qf,ll setlocal wrap "quickfix,loclist
autocmd FileType markdown setlocal wrap spell spelllang=it,en autocmd FileType markdown setlocal wrap spell spelllang=it,en
autocmd FileType yaml,yml setlocal shiftwidth=2 softtabstop=2 expandtab autocmd FileType yaml,yml setlocal shiftwidth=2 softtabstop=2 expandtab
autocmd FileType vue setlocal shiftwidth=2 softtabstop=2 expandtab autocmd FileType vue setlocal shiftwidth=2 softtabstop=2 expandtab
autocmd FileType go setlocal noexpandtab
autocmd FileType go setlocal noexpandtab makeprg=go\ build
autocmd FileType rust set makeprg=cargo\ build
au BufRead dvc.yaml let b:ale_fix_on_save=0 au BufRead dvc.yaml let b:ale_fix_on_save=0
au BufRead *.dvc let b:ale_fix_on_save=0 au BufRead *.dvc let b:ale_fix_on_save=0
au BufRead *.dvc set filetype=yaml au BufRead *.dvc set filetype=yaml