class & function names highlighting in Vim

前端 未结 11 787
名媛妹妹
名媛妹妹 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:01

    To match C functions definitions only, this works for me:

    syn match    cCustomFuncDef display /\(\w\+\(\s\|*\)\+\)\@<=\w\+\s*(\@=/ 
    hi def cCustomFuncDef ctermfg=lightblue
    

提交回复
热议问题