On Thu, Sep 8, 2011 at 11:51 AM, Hannes Magnusson <hannes.magnus...@gmail.com> wrote: > On Thu, Sep 8, 2011 at 11:38, Roel Vanhout <roel.vanh...@gmail.com> wrote: >> I need this to easily get 'tooltips' of php function signatures in >> vim, so that I don't have to go online just to look up the order of >> arguments each time. > $ pear install doc.php.net/pman > and then in vim set keywordprg=pman > and then place the cursor over a function and hit "K" (shift-k).
Yeah but that doesn't work well on Windows, well with Cygwin and stuff like that it could but that's such a pain - I'm looking for a more low-key approach (in addition to the keywordprg lookup which I have set to open the respective page in firefox), because I find that more than half of my doc lookups are just to check a prototype anyway. (Trivia: about 11 years ago I wrote a regex-based man-page generator for the php docs, which in those days were much smaller and simpler - that hideous script hung around in the php source tree until at least 2005 or so when I last checked. I used those man pages for years but now that I'm more on Windows they don't do me much good anymore. But it's good that nowadays there are 'proper' manpages and I guess and hope that my contraption is deleted from the php source tree ;) ). cheers, roel