<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>pastbedti.me &#187; snow leopard</title>
	<atom:link href="http://www.pastbedti.me/tag/snow-leopard/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.pastbedti.me</link>
	<description>About ruby, rails, postgresql and stuff....</description>
	<lastBuildDate>Fri, 02 Apr 2010 20:12:14 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Getting Vim up and running under Snow Leopard</title>
		<link>http://www.pastbedti.me/2009/09/getting-vim-up-and-running-under-snow-leopard/</link>
		<comments>http://www.pastbedti.me/2009/09/getting-vim-up-and-running-under-snow-leopard/#comments</comments>
		<pubDate>Tue, 01 Sep 2009 19:15:54 +0000</pubDate>
		<dc:creator>Patrik Hedman</dc:creator>
				<category><![CDATA[Mouseless]]></category>
		<category><![CDATA[Operatingsystem]]></category>
		<category><![CDATA[Utilities]]></category>
		<category><![CDATA[os x]]></category>
		<category><![CDATA[snow leopard]]></category>
		<category><![CDATA[vim]]></category>

		<guid isPermaLink="false">http://www.pastbedti.me/?p=526</guid>
		<description><![CDATA[So, last night I upgraded my dev machine to Snow Leopard and what kind of a dev machine would it be without Vim?
Fortunately, for some at least, OS X still ships with Vim precompiled, unfortunately for me tough it still don&#8217;t come with ruby support enabled.
Since MacVim, which I usually use, isn&#8217;t yet compatible with [...]]]></description>
			<content:encoded><![CDATA[<p>So, last night I upgraded my dev machine to Snow Leopard and what kind of a dev machine would it be without Vim?<br />
Fortunately, for some at least, OS X still ships with Vim precompiled, unfortunately for me tough it still don&#8217;t come with ruby support enabled.</p>
<p>Since MacVim, which I usually use, isn&#8217;t yet compatible with Snow Leopard I decided to try and compile the regular vim <a href="http://www.pastbedti.me/2009/01/how-to-compile-vim-under-os-x/">as Mathias explained  in a previous blog post about compiling for leopard</a>, well that attempt crashed and burned. I did however get it to compile correctly after a minor tweak to his instructions:</p>
<p>On line 7 in src/auto/config.mk I changed the following line:<br />
<code>LDFLAGS   = -L. -arch i386 -arch x86_64</code></p>
<p>To look like:<br />
<code>LDFLAGS   = -L. -arch x86_64</code></p>
<p>While it did compile successfully, launching Vim just resulted in it exiting immediately with the message: abort trap.</p>
<p>Back at square one I started browsing the <a href="http://groups.google.com/group/vim_mac/browse_thread/thread/93b65296a79c7721">vim_mac mailing list</a> and here&#8217;s how I finally got it working:</p>
<p>Start off by cloning the macvim repository:<br />
<code>~ $ git clone git://repo.or.cz/MacVim.git</code></p>
<p>Then  change into the MacVim/src directory and configure and run make:<br />
<code>~ $ cd MacVim/src<br />
MacVim/src $ ./configure --enable-gui-macvim --enable-rubyinterp<br />
MacVim/src $ make<br />
</code></p>
<p>Now change into the MacVim directory:<br />
<code>MacVim/src $ cd MacVim</code></p>
<p>Normally this is where you would run xcodebuild, however that resulted in the following:<br />
<code>** BUILD FAILED **<br />
The following build commands failed:<br />
MacVim:<br />
PhaseScriptExecution "Make Document Icons" /Users/pmh/Downloads/MacVim/src/MacVim/build/MacVim.build/Release/MacVim.build/Script-1D1C31F00EFFBFD6003FE9A5.sh<br />
(1 failure)<br />
</code></p>
<p>The way to get around this is a bit cumbersome, but works.</p>
<p>Start by deleting line 6 in the Makefile that lives under the icons directory:<br />
<code>MacVim/src/MacVim $ cd icons<br />
MacVim/src/MacVim/icons $ vim Makefile<br />
# delete line 6 and save</code></p>
<p>Then change line 22 in make_icons.py, in the same directory, from:<br />
<code>dont_create = False</code><br />
to:<br />
<code>dont_create = True</code></p>
<p>Change back to the MacVim directory and run xcodebuild:<br />
<code>MacVim/src/MacVim/icons $ cd ..<br />
MacVim/src/MacVim $ xcodebuild</code></p>
<p>You should now see something like the following:<br />
<code>PyObjC not found, only using a stock icon for document icons.<br />
 ** BUILD SUCCEEDED **</code></p>
<p>Now move the MacVim.app to the /Applications folder:<br />
<code>MacVim/src/MacVim $ mv build/Release/MacVim.app /Applications/</code></p>
<p>In order to invoke vim from the command line you need to add the following alias to your ~/.profile or what have you:<br />
<code>alias vim=/Applications/MacVim.app/Contents/MacOS/Vim</code></p>
<p><del datetime="2009-09-06T12:01:59+00:00">Note however that this only lets you use the command line version of MacVim, there seems to still be some issues with the graphical one.<br />
</del><br />
Update:<br />
As Björn pointed out in the comments, the graphical version of MacVim does work under Snow Leopard, also be sure to checkout his <a href="http://b4winckler.wordpress.com/2009/09/02/macvim-on-snow-leopard/">precompiled binary</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.pastbedti.me/2009/09/getting-vim-up-and-running-under-snow-leopard/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
