Skip to content

Instantly share code, notes, and snippets.

@JosephKu
Created August 8, 2011 14:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save JosephKu/1131824 to your computer and use it in GitHub Desktop.
Save JosephKu/1131824 to your computer and use it in GitHub Desktop.
Vim formula for HomeBrew
#/usr/local/Library/Formula/vim.rb
#
# Vim formula for HomeBrew
#
# Written by Joseph Ku <chiehfang.ku@gmail.com>
# All right reserved.
require 'formula'
class Vim < Formula
url 'https://vim.googlecode.com/hg/', :tag => 'v7-3-509'
#url 'ftp://ftp.vim.rog/pub/vim/unix/vim-7.3.tar.bz2'
#md5 '5b9510a17074e2b37d8bb38ae09edbf2'
version '7.3.509'
head 'https://vim.googlecode.com/hg', :using => :hg
homepage 'http://www.vim.org/'
def install
args = [ "--prefix=#{prefix}",
"--mandir=#{man}",
"--enable-gui=no",
"--without-x",
"--disable-nls",
"--enable-multibyte",
"--with-tlib=ncurses",
"--enable-rubyinterp",
"--enable-ruby-command=/usr/bin/ruby",
"--enable-pythoninterp",
"--with-features=huge" ]
system "./configure", *args
system "make install"
end
end
@JosephKu
Copy link
Author

JosephKu commented Aug 8, 2011

To install this formula, right-click 'raw' at the top-right corner of the text area, copy URL, and run the following command:

$ brew install <paste-URL-here>

If you want to download this formula to /usr/local/Library/Formula/, and install it locally, please install it with the option --force, since the latest HomeBrew had the "blacklist" check:

$ curl <paste-URL-here> -o /usr/local/Library/Formula/vim.rb
$ brew install vim --force

Note:
To get the sources of Vim, please install Mercurial first:

$ sudo easy_install pip && sudo pip install mercurial

@JosephKu
Copy link
Author

JosephKu commented Aug 8, 2011

If you are using RVM, please remember to use system Ruby before you install this formula:

$ rvm use system

@JosephKu
Copy link
Author

Update to v7-3-346

@JosephKu
Copy link
Author

Update to v7-3-509

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment