JuliaEditorSupport / julia-vim

Vim support for Julia.
http://julialang.org/
Other
753 stars 94 forks source link

Fix indent when shiftwidth=0 #192

Closed axelf4 closed 4 years ago

axelf4 commented 4 years ago

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.

carlobaldassi commented 4 years ago

Thanks!