.vimrc: filetype autodetect stuff

This commit is contained in:
Lexi / Zoe 2019-12-13 13:53:21 +01:00
parent 5059cf0ba4
commit 2d461bc861
Signed by: binaryDiv
GPG Key ID: F8D4956E224DA232
1 changed files with 3 additions and 0 deletions

3
.vimrc
View File

@ -23,6 +23,9 @@ set shiftwidth=4
set tabstop=4
set softtabstop=4
" Autodetect stuff like 'use tabs in Makefiles'
filetype plugin on
" Indentation for Python (use 4 spaces)
"autocmd FileType python setlocal expandtab shiftwidth=4 softtabstop=4
autocmd FileType yml,yaml setlocal ts=2 sts=2 sw=2 expandtab