vim-orgmode icon indicating copy to clipboard operation
vim-orgmode copied to clipboard

remove a folded header's background color?

Open 2533245542 opened this issue 4 years ago • 3 comments

Hi,

This might not be an issue related to bugs but I really want to know how to change the background color of a fold, which is default to be white, and I personally think it is quite distracted. Is there a way to let the fold just not have a color, like how the org-mode in emacs behave? I am just a vim starter and any help will be welcome.

Just to clarify a bit more, in emacs, when you hit tab on a header, the text block will fold and that's it. However in vim, when you hit tab on a header, the text block will fold and the header will be set to a high contrast color, which is what I would not like to happen.

Thank you!

2533245542 avatar Jan 04 '20 20:01 2533245542

Agree. I use a dark color scheme and folded sections are so bright it's very distracting. I'm not a vim beginner but I've scoured the manual and I am unable to find anything that says how to set those colors.

mvanier avatar Jan 21 '20 22:01 mvanier

Hey, I just figured it out! It's not orgmode-specific. It's the vim Folded highlight colors: https://stackoverflow.com/questions/3930604/different-colors-for-folds-and-subfolds-in-vim

For instance:

:hi Folded guibg=green

makes folds green on my vim.

mvanier avatar Jan 21 '20 22:01 mvanier

That's awesome! Would like to know what color you choose as well!

for example, :hi Folded guibg=white :hi Folded guifg=white

2533245542 avatar Jan 21 '20 22:01 2533245542