• Skip to primary navigation
  • Skip to main content
Sal Ferrarello
  • About Sal Ferrarello
  • Speaking
  • Connect
    Mastodon GitHub Twitter (inactive)
You are here: Home / Draft / PHP documentation in Vim

PHP documentation in Vim

Last updated on October 29, 2018 by Sal Ferrarello

I’m a big fan of the editor Vim and I’m amazed how I constantly find new ways to better configure it. One pain point I have when writing PHP is when I need to use a function (like array_filter() or in_array()), I can not remember the order of the parameters. I can never remember whether the the array I’m operating on goes first or second (FYI, in array_filter() the array comes first and for in_array() the array comes second).

PHP Manual Vim Plugin

Vim has a default behavior of when you press Shift + k, the man page for the word under the cursor is displayed.

This behavior can be customized and the PHP Manual Vim Plugin customizes Shift + k to bring up the PHP documentation for the word under the cursor. I’ve now added PHP Manual to my Vim configuration and I’ve been happy with this new behavior.

Sal Ferrarello
Sal Ferrarello (@salcode)
Sal is a PHP developer with a focus on the WordPress platform. He is a conference speaker with a background including Piano Player, Radio DJ, Magician/Juggler, Beach Photographer, and High School Math Teacher. Sal can be found professionally at WebDevStudios, where he works as a senior backend engineer.

Share this post:

Share on TwitterShare on FacebookShare on LinkedInShare on EmailShare on Reddit
Warning! This is a draft, not a finalized post. See full draft disclosure.

Filed Under: Draft, Solution Tagged With: vim

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Copyright © 2023 · Bootstrap4 Genesis on Genesis Framework · WordPress · Log in