Add parametrization for tabstop and expandtab from local vimrc

This commit is contained in:
Talia 2020-05-05 10:46:04 +02:00
parent 36bf0cfb36
commit a55329c0b4

12
vimrc
View file

@ -70,10 +70,18 @@ set nowb
set swapfile
" Indentation, etc.
set tabstop=3
if exists("$EXPANDTAB")
set expandtab
else
set noexpandtab
end
if exists("$TABSTOP")
let &tabstop=str2nr($TABSTOP)
else
set tabstop=3
end
set shiftwidth=0 " Not needed
set softtabstop=0 " Not needed
set noexpandtab
set smarttab
set autoindent
set smartindent