From f828912a7f39f7525fca1a90adeb390a53e0d0a1 Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Fri, 23 Oct 2020 01:22:31 +0200 Subject: Set softtabstop to -1 to allow chaging shiftwidth --- ftdetect/polyglot.vim | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'ftdetect') diff --git a/ftdetect/polyglot.vim b/ftdetect/polyglot.vim index f0146c74..69d27f08 100644 --- a/ftdetect/polyglot.vim +++ b/ftdetect/polyglot.vim @@ -2773,11 +2773,10 @@ if !has_key(s:disabled_packages, 'autoindent') try " Sunchronize tabstop with shiftwidth let &l:softtabstop = -1 - catch /^Vim\%((\a\+)\)\=:E487/ + catch /^Vim\%((\a\+)\)\=:E487/ " -1 was not supported before Vim 7.4 let &l:softtabstop = a:num_spaces endtry - let &l:softtabstop=shiftwidth return 1 endif -- cgit v1.2.3