In vim, how do I highlight TODO: and FIXME:?

后端 未结 3 1947
死守一世寂寞
死守一世寂寞 2020-12-23 01:52

In vim, FIXME and TODO are highlighted, but I can\'t get FIXME: and TODO: (note the colon after the keyword) to highlight? What should I put in my .vimrc to make this happen

3条回答
  •  执念已碎
    2020-12-23 02:28

    If you make your own environment, make syntax file (not .vimrc)

    • global syntax file is located vim directory (ex. /usr/share/vim/vim72/syntax/c.vim)

    • and if you make ~/.vim/syntax/c.vim, then you can add syntax for your own. (override)

    Just add additional syntax in that file. (the way @Jefromi does)

提交回复
热议问题