add ident style for xml files

This commit is contained in:
Markus Pesch 2021-05-13 12:02:32 +02:00
parent 0d00ff6f16
commit ad7d771572
Signed by: volker.raschek
GPG Key ID: 852BCC170D81A982

3
vimrc
View File

@ -4,8 +4,9 @@ call pathogen#infect()
" Autocmd " Autocmd
autocmd BufWritePre * %s/\s\+$//e " delete deprecated dots at very end of a line autocmd BufWritePre * %s/\s\+$//e " delete deprecated dots at very end of a line
autocmd Filetype make setlocal noexpandtab " use tabs in make files instead whitespaces autocmd Filetype make setlocal noexpandtab " use tabs in make files instead whitespaces
autocmd Filetype yaml setlocal shiftwidth=2 softtabstop=2 " yaml files
autocmd Filetype javascript setlocal shiftwidth=2 softtabstop=2 " javascript files autocmd Filetype javascript setlocal shiftwidth=2 softtabstop=2 " javascript files
autocmd Filetype yaml setlocal shiftwidth=2 softtabstop=2 " yaml files
autocmd Filetype xml setlocal shiftwidth=2 softtabstop=2 " xml files
autocmd BufNewFile,BufRead rsnapshot.conf setlocal noexpandtab " use tabs in rsnapshot.conf files instead whitespaces autocmd BufNewFile,BufRead rsnapshot.conf setlocal noexpandtab " use tabs in rsnapshot.conf files instead whitespaces
" Close NerdTree, if NerdTree is the last open buffer " Close NerdTree, if NerdTree is the last open buffer