diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2020-09-04 18:29:53 +0200 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2020-09-04 18:29:53 +0200 |
commit | 262960fa223139eb5e02647e77af6bac13a17066 (patch) | |
tree | b4663916c7c706e5b53ea93da9704e0d4757632e /plugin/polyglot.vim | |
parent | b2640b5b760e6fc68b8cc49d3c8bab6cdef4f889 (diff) | |
download | vim-polyglot-4.9.0.tar.gz vim-polyglot-4.9.0.zip |
Synchronize shiftwidth with tabstop by defaultv4.9.0
Diffstat (limited to 'plugin/polyglot.vim')
-rw-r--r-- | plugin/polyglot.vim | 5 |
1 files changed, 5 insertions, 0 deletions
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 |