I would like to use vim/gvim to automatically highlight my code file for example .svh/.sv/.txt file and here is my setting picture:
and i source it. But it always failed to automatically highlight the code file.
fix that error with some ways
I would like to use vim/gvim to automatically highlight my code file for example .svh/.sv/.txt file and here is my setting picture:
and i source it. But it always failed to automatically highlight the code file.
fix that error with some ways
It looks as if Vim does not support verilog files out of the box. You will need to install a plugin (or write one yourself) to make it work.
A quick search found the verilog systemverilog plugin. You might give it a try. I have no experience with it but it seems to be actively maintained.
The plugin will work for *.v,*.vh,*.vp,*.sv,*.svi,*.svh,*.svp,*.sva
files.
I would not recommend to also use it for *.txt
files as this will affect all plain text files.