jceb / vim-orgmode

Text outlining and task management for Vim based on Emacs' Org-Mode
http://www.vim.org/scripts/script.php?script_id=3642
Other
3.1k stars 266 forks source link

remove a folded header's background color? #337

Open 2533245542 opened 4 years ago

2533245542 commented 4 years ago

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!

mvanier commented 4 years ago

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 commented 4 years ago

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.

2533245542 commented 4 years ago

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

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