class & function names highlighting in Vim

前端 未结 11 788
名媛妹妹
名媛妹妹 2020-11-29 15:23

I just recently set up my Vim environment from Textmate, after becoming addicted to its modal input.

However, syntax highlighting seems to be not so beautiful in Vim

11条回答
  •  庸人自扰
    2020-11-29 16:03

    EDIT: color_coded may be too heavy for you. try octol/vim-cpp-enhanced-highlight. It supports C++11/14 and integrates what @Eduardo answers.

    Semantic based highlighter:
    I would recommend jeaye/color_coded, A vim plugin for libclang-based highlighting
    So sorry that i'm new to stackoverflow which means I've not enough reputation to post images. Go see its effects if you wanna give it a shot. :)

    Pros:

    • Easy installation
    • Semantic highlighting
    • Clighter mentioned as above, need vim compiled with python2.7. However, color_coded is written in C++ and provides lua binding -> C++.

    Cons:

    • It delays unless you make some vim events to acitve it.
    • Customization is bit harder; you need to edit syntax/color_coded.vim yourself. But customization has been placed on its roadmap.

    Although it's still under development, it's increasingly gaining attention.

    before after

提交回复
热议问题