2

I am trying to emulate the Atom JavaScript syntax highlighting in vim, but there are a few things missing.

Namely, I'd like to highlight objects and their chains in red. It'd be dandy if I could also highlight classes in yellow.

Here's what I'm seeing.

Vim

enter image description here

Atom

enter image description here

I am using this enhanced highlighting plugin https://github.com/pangloss/vim-javascript

  • 1
    you probably have to create your own syntax rules, you could start from the mentioned plugin. Note however, that is a magic of its own, and not to be recommended if you not really know Vim (and especially its regular expressions) very well – Christian Brabandt Feb 16 '18 at 21:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.