$ ~/.vimrc
syntax on
augroup vimrc_jun_todo
au!
au Syntax * syn match JunTodo /\v<(FIXME|NOTE|TODO|OPTIMIZE):/ containedin=.*Comment,vimCommentTitle
augroup END
hi def link JunTodo Todo
Reference:
https://stackoverflow.com/questions/4097259/in-vim-how-do-i-highlight-todo-and-fixme
No comments:
Post a Comment