WeiChungWu / vim-SystemVerilog

SystemVerilog syntax highlight/indent support in vim
MIT License
49 stars 18 forks source link

What is the relationship/comparison with systemverilog.vim support installed with vim itself? #5

Closed yurivict closed 3 years ago

yurivict commented 3 years ago

vim-console-8.2.2072 installs:

$ pkg info -l vim-console  | grep -i verilog
    /usr/local/share/vim/vim82/ftplugin/systemverilog.vim
    /usr/local/share/vim/vim82/ftplugin/verilog.vim
    /usr/local/share/vim/vim82/indent/systemverilog.vim
    /usr/local/share/vim/vim82/indent/verilog.vim
    /usr/local/share/vim/vim82/syntax/systemverilog.vim
    /usr/local/share/vim/vim82/syntax/verilog.vim
    /usr/local/share/vim/vim82/syntax/verilogams.vim

How are they related/compared to each other?

WeiChungWu commented 3 years ago

General speaking verilog.vim supports Verilog language. systemverilog.vim supports SystemVerilog language which can be treated as a super set of Verilog. It is with many new features and capabilities to aid design verification and design modeling. Hope that can answer your question.

yurivict commented 3 years ago

But vim installs both verilog.vim and systemverilog.vim.

How your systemverilog.vim is different from systemverilog.vim that vim installs?

WeiChungWu commented 3 years ago

I made this plugin since VIM 7 which doesn't have SystemVerilog language plugin (syntax/indent) support yet. It is because I can't find a well SystemVerilog plugin for me at that time. After some released versions (I don't follow the vim version history), vim also includes systemverilog files which may be mailed by the other author of his own version to Bram Moolenaar. But I am still using my plugin for my works.

You can read README.md for the features first. Basically, both files are the same purpose to syntax highlight SystemVerilog code and indent it. They are implemented by different way and showed different appearances. You can compare it and choose one of them you like.

yurivict commented 3 years ago

Thank you.