Set softtabstop to -1 to allow chaging shiftwidth

This commit is contained in:
Adam Stankiewicz
2020-10-23 01:22:31 +02:00
parent 2522ad2029
commit f828912a7f

View File

@@ -2773,11 +2773,10 @@ if !has_key(s:disabled_packages, 'autoindent')
try try
" Sunchronize tabstop with shiftwidth " Sunchronize tabstop with shiftwidth
let &l:softtabstop = -1 let &l:softtabstop = -1
catch /^Vim\%((\a\+)\)\=:E487/ catch /^Vim\%((\a\+)\)\=:E487/
" -1 was not supported before Vim 7.4 " -1 was not supported before Vim 7.4
let &l:softtabstop = a:num_spaces let &l:softtabstop = a:num_spaces
endtry endtry
let &l:softtabstop=shiftwidth
return 1 return 1
endif endif