3

Plugins to make PHP coding easier and efficient in (g)Vim?

e.g. Error detection/highlight, debugging, etc?

6
  • 2
    "Error correction" --- pack up this one for me, please. Commented Mar 10, 2011 at 3:37
  • @zerkms I didn't get it~ Commented Mar 10, 2011 at 3:41
  • @alexchenco: it was a joke addressed to the fact that there is no pixie dust and each developer should fix errors manually. Commented Mar 10, 2011 at 3:43
  • Simple syntax error detection is certainly possible. But doesn't vim already have syntax highlighting? (This is were I would surmise such an feature.) Commented Mar 10, 2011 at 3:45
  • Also a PHP xdebug client for vim exists already: tech.blog.box.net/2007/06/20/… Commented Mar 10, 2011 at 3:48

2 Answers 2

2

For error detection, there is no miracle, but Syntastic is a good start.

If you have installed xdebug, then you can use :

Also, there is a package with some PHP config/plugins all-in-one, PIV, but I prefer installing plugins one by one.

Finally, the best advice would be to first install Vundle, so that you can then do this :

:BundleSearch php

Then yank the plugins results you're interested in, into your .vimrc, then

:BundleInstall

And you can test these plugins in no time. And launch :BundleClean after removing lines in your .vimrc if you don't like the plugin.

Sign up to request clarification or add additional context in comments.

Comments

1

I found the free book 'A Byte of Vim' very helpful. It contains descriptions of a useful set of plugins.

http://www.swaroopch.com/notes/Vim

See also Dr Chip's Vim page.

http://www.drchip.org/

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.