Create a gist now

Instantly share code, notes, and snippets.

Vim formula for Homebrew
 $ brew install python --framework
 $ mkdir ~/Library/Frameworks/
 $ cd ~/Library/Frameworks/
 $ ln -s /usr/local/Cellar/python/2.7.2/Frameworks/Python.framework .
 $ brew install -vd ./vim.rb
require 'formula'
class Vim < Formula
# Get stable versions from hg repo instead of downloading an increasing
# number of separate patches.
url 'https://vim.googlecode.com/hg/', :revision => '25be7c9dda54'
version '7.3.266'
homepage 'http://www.vim.org/'
head 'https://vim.googlecode.com/hg/'
def install
system "./configure", "--prefix=#{prefix}",
"--mandir=#{man}",
"--enable-gui=no",
"--without-x",
"--enable-multibyte",
"--with-tlib=ncurses",
"--enable-pythoninterp=dynamic",
"--with-python-config-dir=/usr/local/Cellar/python/2.7.2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config",
"--with-features=huge"
system "make"
system "make install"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment