Wednesday, May 6, 2009

vim & xcodebuild

Small hint to those rare birds who (like me) want to work on his Xcode projects over ssh connection and uses vim for this purpose. Usually I use quickfix mode but there is no compiler file for Xcode in vim distribution. Luckily there is obsolete pbx.vim (compiler file for Apple Project Builder, predecessor of Xcode) that could be easily converted to support modern tools. Of course, writing xcode.vim from scratch would take only a couple of minutes but who wants to make it manually if it's possible to automate this process?

Here is magic command:

cat /usr/share/vim/vim72/compiler/pbx.vim | sed s/pbx/xcode/g > /usr/share/vim/vim72/compiler/xcode.vim


Stay tuned. Next week I'll teach you how to control Death Star with simple perl script.

Tuesday, May 5, 2009

ohloh and FreeBSD

ohloh seems to be unable to grind FreeBSD's svn repo. I've been watching for its efforts for several days now and commits progress meter resets from time to time:
https://www.ohloh.net/p/freebsd/enlistments