This link suggests inserting the following 'code' snippet into your .vimrc file. It selectively intends only your verilog code. (other code variants are also suggested in the above mentioned link, see for yourself if interested, I am posting this code because this was the behaviour that I wanted.)
au BufReadPost * if exists("b:current_syntax")
au BufReadPost * if b:current_syntax == "verilog"
au BufReadPost * let b:verilog_indent_modules = 1
au BufReadPost * endif
au BufReadPost * endif


No comments:
Post a Comment