Vim Tips Wiki

PHP online help

Revision as of 12:41, February 24, 2014 by (Talk)

1,619pages on
this wiki
Tip 598 Printable Monobook Previous Next

created 2003 · complexity basic · author Macel Preda · version 6.0

While editing a .php file, you may need to view the php manual to see the parameters for a function.

You might open a browser and visit (for example

However, you can use:

set keywordprg=a_script

Then, by default, when the cursor is on a WORD and you press K in normal mode, Vim will run man WORD. If you set keywordprg=a_script, Vim will run 'a_script WORD'.

So I have

set keywordprg=/home/marcel/php_doc

and php_doc looks like:


And now I have online help.

links is a text browser for Unix. Of course you can use lynx instead.


respected sir.... can u give me php code for fetching the contact us page from any website using curl function... my email is : pls rply.

Around Wikia's network

Random Wiki