preservim / vim-indent-guides

A Vim plugin for visually displaying indent levels in code
MIT License
2.62k stars 162 forks source link

Process autocmds when sw, et or ts option changes #133

Closed mhaehnel closed 1 year ago

mhaehnel commented 6 years ago

The autocmd is only enabled on vim newer than 7.4.786 where the OptionSet autocmd feature was introduced.

mhaehnel commented 6 years ago

This enables that the guides are updated when the corresponding options change, even when the buffer is not switched. Requires a semi-modern vim so the feature is guarded.