0

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')?

1

There 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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.