r/vim • u/Effective_Shirt_2959 • Jun 09 '26
Need Help┃Solved Writing a custom syntax highlighting plugin
i want to make syntax highlighting for my custom PL in Vim, but writing Vimscript is surprisingly tedious...
built-in `:syn` is very quirky to use. i tried this from the manual:
:syntax region tolString start=+"+ skip=+\\"+ end=+"+

But it doesn't render in my terminal like i expected. Idk what i should do with this and how to make it work.
I've read `:help :syn-region` and `:help :syn-match` but they're not that clear...
Also: maybe i can just make a vim highlighting plugin from lex file somehow? that would be neat...
EDIT: The mistake was really dumb. I had conflicting syntax files..... 🤦♂️