Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Tobias Schlitt's Blog:
Comfortable PHP editing with VIM -3-
May 23, 2005 @ 11:21:02

Tobias Sschlitt has a new post on his blog today with a few helpful hints on using VIM to "comfortably code PHP".

It's time to continue my series, since I again updated my .vimrc in the past weeks for much more comfortable editing of PHP sources using VIM. There are several new features I added: Auto completion of functions using , Auto reloading of .vimrc when changed, Enclose visually selected text by braces/quotes, Much more convenient scrolling through autoclosing folds, Search the PHP manual directly in VIM using phpm, Added settings for misconfigured machines, and more convenient creation of phpdoc blocks with correct indenting and automatic * chars.

To use some of this (and the older) features, you will have to download Rasmus' function list and install phpm (which is very easy).

He then goes into more detail on how to use each of the features and what some of the real benefits are. I love the fact that he integrated the phpm command-line application into VIM, making it that much easier to access the various functions. Thanks to a handy little function in the .vimrc, it knows if you're trying to complete a function name or not and takes the appropriate action when hitting .

For anyone that uses VIM out there, you really should check out this setup and see what features would work well for you...there's some really nice functionality here. (part one and part 2 are here...)

tagged:

Link:


Trending Topics: