diff --git a/vimrc b/vimrc index 2eb2a2a..d5a2cf3 100644 --- a/vimrc +++ b/vimrc @@ -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