Hello, Christian.
I think your best thing to do is set up a CursorHold autocommand:
Really, I want to see foldcolum only when at least one fold presents.
CursorHold is a workaround. I made another one:
map <F2> :call ToggleFoldColumn()<CR>
imap <F2> <C-O>:call ToggleFoldColumn()<CR>
function ToggleFoldColumn()
if &foldcolumn == 0
set foldcolumn=1
else
set foldcolumn=0
endif
endfunction
P.S.
How to understand is any foldable text presents in current buffer?
--
sergio.
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php