Currently I have set foldcolumn=1
, but in a buffer with no folds, it's just a waste of space.
Is there a convenient event to listen to in order to automatically toggle it between 0
and 1
(or whatever preference for 'on')?
Vi and Vim Stack Exchange is a question and answer site for people using the vi and Vim families of text editors. It only takes a minute to sign up.
Sign up to join this communityThere is no such event.
I opened an issue on vim’s github about getting an auto
value acceptable for the 'foldcolumn'
option, but I don’t recall it gaining any traction.
I developed Auto Origami for just this purpose.