Hello you all,

I am currently undertaking the mentioned task for keeping up with IDEs
like Eclipse. They call it outline view: A listing of includes,
function and procedure definition and so forth. I am at this point:

map <S-F4> :il/^\s*\(procedure\)\\|\(on.*of\)<CR>

This works nice, it displays triggers (on.*of) and procedure
definitions. I got the idea from another code sample I simply copied:

map <F4> [I:let nr = input("Match: ")<Bar>exe "normal " . nr ."[\t"<CR>

This displays all lines with the word under the cursor. I can enter a
number and it jumps to the line.

However, my code still lacks the latter functionality. I am not sure
what the jump piece in the copied code does. So my question is
two-fold:

1. How does the jumping in the copied piece of code work?
2. Can I employ a similar algorithm to my :il lookup?


Best wishes,

Thomas M. Engelke

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

Reply via email to