[英]Highlighting Vim text with black background when ANSI colors are off
I'm on OSX. 我在OSX上。 I turned ANSI colors off in Terminal.app. 我在Terminal.app中关闭了ANSI颜色。 This is great, but now visual selections are no longer highlighted. 很好,但是现在视觉选择不再突出显示。 I'd like them to be simply inverted with a black background and white text. 我希望将它们简单地以黑色背景和白色文字反转。 I've tried 我试过了
hi Visual ctermfg=15 ctermbg=0
hi VisualNOS ctermfg=15 ctermbg=0
but nothing's happening. 但什么都没发生。 Any ideas? 有任何想法吗?
Without ANSI colors support there is no real point defining foreground and background colors. 没有ANSI颜色支持,就没有定义前景色和背景色的实点。
What you are looking for is: 您正在寻找的是:
hi Visual cterm=reverse
hi VisualNOS cterm=underline
See :help highlight-cterm
. 参见:help highlight-cterm
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.