From 262960fa223139eb5e02647e77af6bac13a17066 Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Fri, 4 Sep 2020 18:29:53 +0200 Subject: Synchronize shiftwidth with tabstop by default --- plugin/polyglot.vim | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'plugin') diff --git a/plugin/polyglot.vim b/plugin/polyglot.vim index db2976e6..ccdef112 100644 --- a/plugin/polyglot.vim +++ b/plugin/polyglot.vim @@ -19,6 +19,11 @@ endif let g:loaded_sleuth = 1 let g:loaded_polyglot = 1 +" Makes shiftwidth to be synchronized with tabstop by default +if &shiftwidth == &tabstop + let &shiftwidth = 0 +endif + function! s:guess(lines) abort let options = {} let ccomment = 0 -- cgit v1.2.3