Add parametrization for tabstop and expandtab from local vimrc
This commit is contained in:
parent
36bf0cfb36
commit
a55329c0b4
1 changed files with 10 additions and 2 deletions
10
vimrc
10
vimrc
|
@ -70,10 +70,18 @@ set nowb
|
||||||
set swapfile
|
set swapfile
|
||||||
|
|
||||||
" Indentation, etc.
|
" Indentation, etc.
|
||||||
|
if exists("$EXPANDTAB")
|
||||||
|
set expandtab
|
||||||
|
else
|
||||||
|
set noexpandtab
|
||||||
|
end
|
||||||
|
if exists("$TABSTOP")
|
||||||
|
let &tabstop=str2nr($TABSTOP)
|
||||||
|
else
|
||||||
set tabstop=3
|
set tabstop=3
|
||||||
|
end
|
||||||
set shiftwidth=0 " Not needed
|
set shiftwidth=0 " Not needed
|
||||||
set softtabstop=0 " Not needed
|
set softtabstop=0 " Not needed
|
||||||
set noexpandtab
|
|
||||||
set smarttab
|
set smarttab
|
||||||
set autoindent
|
set autoindent
|
||||||
set smartindent
|
set smartindent
|
||||||
|
|
Loading…
Reference in a new issue