aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--.vimrc4
1 files changed, 4 insertions, 0 deletions
diff --git a/.vimrc b/.vimrc
index 5c59154..dd7d350 100644
--- a/.vimrc
+++ b/.vimrc
@@ -1102,6 +1102,10 @@ function! s:ftplugin_setlocal(qargs) abort
let option_name = substitute(a:qargs, '\L.*', '', '')
+ if option_name ==# 'shiftwidth' && exists(':IndentLinesReset') ==# 2
+ IndentLinesReset
+ endif
+
if exists('b:undo_ftplugin')
let b:undo_ftplugin .= '|setlocal ' . option_name . '<'
else