When 'shiftwidth' is zero, 'ts' should be used instead. Use shiftwidth()
instead of &shiftwidth to get the effective value.
This function was introduced with patch 7.3.694 in 2012, which would up
the minimum supported Vim version. If this is a problem a polyfill could
be added.
When
'shiftwidth'
is zero,'ts'
should be used instead. Useshiftwidth()
instead of&shiftwidth
to get the effective value.This function was introduced with patch 7.3.694 in 2012, which would up the minimum supported Vim version. If this is a problem a polyfill could be added.