summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2020-10-23 01:22:31 +0200
committerAdam Stankiewicz <sheerun@sher.pl>2020-10-23 01:22:31 +0200
commitf828912a7f39f7525fca1a90adeb390a53e0d0a1 (patch)
treee981c36173fbf707fb0360a5d79613c38312389c
parent2522ad2029cb880552173cc5eb6a861b02a8799a (diff)
downloadvim-polyglot-f828912a7f39f7525fca1a90adeb390a53e0d0a1.tar.gz
vim-polyglot-f828912a7f39f7525fca1a90adeb390a53e0d0a1.zip
Set softtabstop to -1 to allow chaging shiftwidth
-rw-r--r--ftdetect/polyglot.vim3
1 files changed, 1 insertions, 2 deletions
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