On 10/04/09 18:42, mhoffman wrote: > > Hi, > > I just came across the [I search to display occurences of the > keyword under the cursor in all included files and I think it is > awesome. But what I was really looking for is a quick way to look up > the arguments a function expects, and so this search gives me a lot of > junk next to the function prototype. > > So, my idea is to either customize this search to only display those > matches that comply with another regex, e.g. if I was programming in > Fortran, only display those line, that also contain ^subroutine or > function. Or is there maybe another (more convenient way) to look up > function prototypes that I have overlooked? > > Best, > Max.
Have you tried making a tagfile for your modules? Exuberant Ctags may already have the description of your language, or if it doesn't, you can add a homemade definition. To see how it works (assuming that you have Exuberant Ctags installed, and also some Unix-like OS which may be not only Linux but also Mac OS X, Cygwin, etc.), get the Vim source, configure it, then run "make tags" from the top-level Makefile or src/Makefile. Then, by hitting Ctrl-] on any symbol in the Vim source, you'll be brought to wherever (if anywhere) that symbol is defined. That may be in a different file, possibly joined only at link-time. Best regards, Tony. -- I used to be an agnostic, but now I'm not so sure. --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
