1

Hi I'm a new vim user (1 week), I just switched my color scheme to monokai, however a point let me dissatisfied, c++ namespaces are not highlighted. I tried :

hi namespace guifg=[my color]

and

hi Namespace guifg=[my color]

without any results.

Does anyone know a way around ?

6
  • 1
    Welcome to Vi and Vim! You’ll need to know the correct highlighting group to override. There are a plethora of plugins to help with this (my own github.com/benknoble/vim-synstax being one of them).
    – D. Ben Knoble
    Commented Nov 15, 2019 at 16:19
  • Thanks !!! I'm gonna take a look ;)
    – 4rklog
    Commented Nov 15, 2019 at 16:29
  • Great that was exactly what I was looking for !!!
    – 4rklog
    Commented Nov 15, 2019 at 16:36
  • Np! Please self-answer if you were able to solve your problem to help future users :)
    – D. Ben Knoble
    Commented Nov 15, 2019 at 16:36
  • I did, but a need to wait two days to validate.
    – 4rklog
    Commented Nov 15, 2019 at 16:39

1 Answer 1

3

The identifier was cppSTLnamespace. Thanks to @D.Ben Knoble for his plugin!

The full command is

hi cppSTLbamespace guifg=...

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.