Enable syntax highlight for sytemm verilog, verilog preprocessor files with extensions v, sv, vpp, svh, svhpp
Create a file named “.vimrc” in your home directory [*nix]
Put the following lines in that file
“File Begins here
“Note: Comments in vim script begin with double quote
“Filename : .vimrc
“Author : A.G.Raja
“Website : http://agraja.wordpress.com
“Show line numbers
set nu
“Source the syntax file
so $VIMRUNTIME/syntax/verilog.vim
“Add file extensions to be highlighted
au Syntax sv runtime! syntax/verilog.vim
au Syntax svh runtime! syntax/verilog.vim
au Syntax vpp runtime! syntax/verilog.vim
au Syntax svpp runtime! syntax/verilog.vim
au Syntax svhpp runtime! syntax/verilog.vim
“End of file


When i tried this the error comes on the screen :
bash: au: command not found.
I am working on ubuntu.
Any help on this ??
ravisguptaji,
Probably u tried to execute the “.vimrc” script
from the command line. You don’t have to do that.
Just save this file at $HOME. Open your SystemVerilog
file in vim/GVIM. That’s it.