简体   繁体   中英

Color specific term

More specifically I would like the term "False" in python to be always colored red as opposed to the term "True" which is already green(as its "False", since both are part of the pythonBuiltin category I believe). So is there a way to determine a color only to a specific word? I want to keep my current colorscheme and only add this tweak.

Woops think I got it. I added to my.vimrc:

highlight redOnes ctermfg=red
match redOnes /False/

:h match was helpful

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM