vim-indent-detect

A Vim plugin for handeling indentation.
git clone https://git.ce9e.org/vim-indent-detect.git

commit
fe247ce9b452dd2818bbb8ac90129930ffadbd1a
parent
93d7839a4df53c2b540297cb9c145781f6f1a338
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2023-06-11 06:43
set softtabstop to -1

use the same value as shiftwidth

this is better if users change shiftwidth manually

Diffstat

M autoload/detectindent.vim 2 +-

1 files changed, 1 insertions, 1 deletions


diff --git a/autoload/detectindent.vim b/autoload/detectindent.vim

@@ -4,7 +4,7 @@ function! detectindent#Set(expandtab, ...)
    4     4 
    5     5 	let &l:tabstop = l:width
    6     6 	let &l:shiftwidth = l:width
    7    -1 	let &l:softtabstop = l:width
   -1     7 	let &l:softtabstop = -1
    8     8 endfunction
    9     9 
   10    10 function! detectindent#Detect()