Friday, December 18, 2009

To print module's name

Hi,

While browsing in verilog or vhdl code, there is a need to get which "module" or "entity" (these are the required keywords) the line is.

My solution is maybe writing a function and map a key to call this function.

Any example code for the function would be very well...

Thanks,

Burak

PS:

The case is
--------------------------------------
module aaa
...
   <the cursor here somewhere>
...
endmodule
--------------------------------------
Just press a key (or key combination) to get (or print) aaa

--
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php

No comments: