darkrc/vim/plugin/indent.vim

22 lines
340 B
VimL
Raw Permalink Normal View History

2020-07-17 11:24:51 +00:00
if exists("$EXPANDTAB")
set expandtab
else
set noexpandtab
end
if exists("$TABSTOP")
let &tabstop=str2nr($TABSTOP)
else
set tabstop=3
end
" Just use the value of &tabstop
set shiftwidth=0
" I use proper tabstop anyway
set softtabstop=0
" Don't use shiftwidth for indentation
set nosmarttab
set autoindent
set smartindent
set smarttab