In default vim, whenever
foldenable is set to false, the left-hand fold column becomes blank but continues to take up valuable screen real estate.
It would be better instead if the fold column automatically disappeared or became hidden whenever
foldenable is set to false. And then become visible whenever it is set back to true.
Is there an easy way to do this?
Setting up mappings that change
foldcolumn=0 and then back to
foldcolumn=4 or something like that I think would be a little complicated because the
foldenable option is auto-changed with several different normal-mode commands (