Search code examples
vimcolor-scheme

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.


Solution

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

    highlight redOnes ctermfg=red
    match redOnes /False/
    

    :h match was helpful