fix: vimrc

This commit is contained in:
Markus Pesch 2018-06-16 11:20:05 +02:00
parent 4fe062f93d
commit 69383b5f1e
Signed by: volker.raschek
GPG Key ID: 852BCC170D81A982

6
vimrc
View File

@ -3,7 +3,9 @@ call pathogen#infect()
" Autocmd
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 BufNewFile,BufRead rsnapshot.conf setlocal noexpandtab " use tabs in rsnapshot.conf files instead whitespaces
" Close NerdTree, if NerdTree is the last open buffer
@ -21,7 +23,7 @@ set autoindent " automa
set background=dark
set encoding=utf-8 " file encoding
set expandtab
set fileformat=unix " use unix fileformat (LCR)
set fileformat=unix " use unix fileformat (LF)
set list listchars=tab:»·,trail" display dots for identicate tabspaces
set mouse=v " support mouse in visual mode
set nobackup " no backup files