I'm trying to create a basic custom syntax file for the first time, but I noticed that after I set a highlight link it's basically set and I'm not really sure how to change it. Here is my syntax file:
syn keyword tTask task start fix
syn keyword tEnd finish
syn keyword tNote note
hi def link tTask Special
hi def link tEnd Todo
hi def link tNote Comment
let b:current_syntax = "todo"
.vimrc, I have
au BufRead,BufNewFile *.todo setfiletype todo.
When I change
Special for example, the highlighting won't change in a file I've created. In fact... not much I've tried changes it. Is this a common problem? I couldn't find this online.
Edit: I "reopen" the todo file by using
:edit in the tab, but closing and reopening in a new instance gives the same result where the highlighting doesn't change. I have put in
echom commands, so I know that the code is running when I run
:edit or open a new instance, but the highlighting doesn't change.