Ian P. Christian's Personal Blog Random witterings from pookey

27Sep/060

per file configuration in vim – the modeline

I wanted a certain file to be highlighted as a PHP file despite the fact it was a .html file, and do to this you use the 'modeline' feature of Vim.

To do this, on line2 of the file, I put the following

 // vim:set filetype=php: 

For me, it didn't work immediatly, the following command showed why though.

:verbose set modeline? modelines? 

By default in gentoo, the modeline is disabled in /etc/vim/vimrc, so either remove that line from there, or in your .vimrc put 'set modeline'. The modelines option tells vim how many llines to look at at the beginning and the end of the file.

For more information, type ':he modeline' in vim to bring up the relivent part of the manual

Filed under: Uncategorized No Comments
16Sep/060

PHP6 and namespaces

http://www.corephp.co.uk/archives/19-Prepare-for-PHP-6.html

Looks like we still won't see namespaces in php6 - madness

That site does have a whole host of interesting changes in PHP6 - well worth a read. One of my concerns is putting APC into the core of PHP, as it's never been overly stable for me. Guess we'll have to wait and see.

Filed under: Uncategorized No Comments
13Sep/060

Doctrine ORM and Symfony

I've recently started to follow (and slightly help with development) of Doctrine. It's a fantastic alternative to propel, significantly faster and a lot lighter. I strongly advise you check it out. Documentation is a bit poor, but I'm always on the #doctrine IRC channel on freenode as is the lead developer zYne- and a few others - feel free to pop in and say hello!

Continue reading
Filed under: geek Continue reading