Thanks all,

Burak

2009/12/20 KingTiger <[email protected]>

>  Hi.
> A simply code .
> map <F8> <ESC>:echo
> getline(search('^\s*\<\(entity\|module\)\>\s*\w\+','bWn'))<CR>
>
> ps: my outlook  express can't post bottom.. - -!,,
>
>
>
> 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
>

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

Reply via email to