Tuesday, July 5, 2011

Re: php.net function list documentation inside vim?

On 05/07/11 08:51, nikhil jain wrote:
> This is my second time usign mailing lists , so apologies if I am doing
> something silly.
>
> I am not sure if this is a good idea, but is there a way to have the
> php.net documentation about functions 'inside' vim. That way instead of
> having to switch to the browser every time I want to do something new, I
> can just search php.net function list inside vim.
>
> Another question: the little documentation that is shown on pressing K ,
> only shows docs for a few functions. Is there a way to expand that
> documentation to include more default php functions?
>
> Thanks
>
> I am windows btw using gvim 7.3
>

K normally usees an external program to look up the word under the
cursor. On Linux that would be the "man" utility, but I'm not sure what
it's set toon Windows. What do you see in answer to

:verbose set kp?

? If it is empty, the answer is the same as for your other question, as
follows:

You could, if you wanted, write PHP help documentation and make it
available inside Vim (as *.txt files similar to Vim's help files, and
placed in e.g. $VIM/vimfiles/doc/ -- that directory does not exist by
default, you only need itif you have something to put in it). Of course
this is hardly a task for Vim developers, and OTOH I doubt (but you
could always ask them) if PHP developers would want to make their syntax
help available in vim-help format. So AFAIK you're left to your own
devices. If you do it yourself (yes, it is definitely possible), you
would have to make sure that there is no duplication of help tags
between your "PHP help" and the usual Vim help. One way would be using
only tags starting with php- but that would defeat the normal way of
finding help by hitting K or Ctrl-] on a keyword.

See
:help help-writing
:help :helptags


Best regards,
Tony.
--
"Imagine if every Thursday your shoes exploded if you tied them the
usual way. This happens to us all the time with computers, and nobody
thinks of complaining."
-- Jeff Raskin, interviewed in Doctor Dobb's Journal

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments:

Post a Comment