R Sam 写道: > To whoever maintains the "desert" colorscheme distributed with vim: > > It turned out to be an issue with the Ignore group's highlight setting. The > desert colorscheme has its background set as guibg=grey20, while its Ignore > group highlight has its guifg=grey40. I manually set it as guifg=bg in my > .vimrc and the ignore works fine now. The txtfmt scripts hidden tokens now > stay hidden.
This is not a bug, it is a "feature" IMO, I learned from desert scheme and use this feature in my own color scheme. The reason not to set fg=bg for Ignore, is that we actually need to know there's some text at the hidden area. And we know we can ignore it since the color very close to background. Think that in a GUI, you will see disabled menu items anyway, and they're Grey color instead of just hidden. Another reason may be: in some terminal the cursor always has the same color as the foreground, if fg=bg you will not be able to see the cursor at all. Unfortunately, not all terminal emulators will let you define the cursor color. So it is better not to let fg=bg, or your cursor will disappeared at the ignored character. --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
