vimblog.vim on MacVim

June 6th, 2009

I was contacted via Twitter for some support on getting vimblog.vim to work on MacVim, on Mac OSX Leopard. The unique problem is that it must be compiled with Ruby interpreter support. So here is a quick guide to do it, building from Macvim git repository:

# select a folder where to build the aplication on your area:
cd to_your_workingspace_apps_folder
# get (clone) MacVim from its MacVim.git repository:
$ git clone git://
$ cd MacVim
$ cd src
# now let us configure it for macvim gui and for +Ruby (I’ll add +Python and +Perl) support:
$./configure --enable-gui=macvim --enable-rubyinterp --enable-perlinterp --enable-pythoninterp --with-ruby-command=/Users/pedro/.rvm/rubies/ruby-1.8.7-p357/
$ make
# Success ? Let’s build the
$ cd MacVim
$ xcodebuild
# Sucess ? Let’s try it…
$ open build/Release/
# now lets copy vimblog to $HOME
$ cp $HOME/Downloads/vimblog.vim $HOME/.vim/plugin
# insert your credentials
# now test the existence of the script. Run MacVim and execute
:B + TAB
# you shoud get code completion for the Blog command.
# get the 10 most recent articles
:Blog rp

if you get problems, before another build, do a:
$ make distclean

Screenshots: jump to flickr macvim window jump to flickr building space

I wiped out the default OSX Ruby and use only RVM Rubies. So now to compile, one needs to specify the exact ruby interpreter. It’s updated on the ./configure statement above.
One can use the default Ruby used by RVM, using the default rubies path like below:
$./configure --enable-gui=macvim --enable-rubyinterp --enable-perlinterp --enable-pythoninterp --with-ruby-command=/Users/pedro/.rvm/rubies/default/
removed the old download place, and updated to the new one (above)