From a55329c0b41f76df22adee200058deb0e31738a7 Mon Sep 17 00:00:00 2001 From: DarkWiiPlayer Date: Tue, 5 May 2020 10:46:04 +0200 Subject: [PATCH] Add parametrization for tabstop and expandtab from local vimrc --- vimrc | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) 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