As a buffer-local option, 'foldcolumn'
is probably set by a filetype plugin, especially because its global default value is 0.
When the fold column appears, find out where it got set via :verbose setlocal foldcolumn?
. Then, e.g. when it was set by ftplugin/cpp.vim
, you can put the following into ~/.vim/after/ftplugin/cpp.vim
:
:setlocal foldcolumn=0
The after directory allows to override filetype-specific settings without modifying the original script.