In VIM % is an excellent time saving command.
I work in verilog and it does not have much use of brackets. So I wanted to know is there any mechanism through which I can use % effectively in verilog.
For example :
-
If my cursor is under word
taskand I give%command it takes me to the line where we haveendtask. -
Similarly for
moduletoendmoduleandbegintoend.
This kind of feature can be really helpful while we are looking at large verilog modules and functions.
Activate the matchit plugin. It’s part of Vim’s distribution but it’s not activated by default. The instructions are here:
:help matchit-install.I don’t think that verilog is supported but it’s relatively easy to add new definitions. See
:help matchit-newlangfor details.