Skip to content

Instantly share code, notes, and snippets.

@scottstanfield
Created May 2, 2012 22:31
Show Gist options
  • Save scottstanfield/2581041 to your computer and use it in GitHub Desktop.
Save scottstanfield/2581041 to your computer and use it in GitHub Desktop.
brew formula to compile vim with clipboard for Mac
require 'formula'
class Vim < Formula
homepage 'http://www.vim.org/'
# Get stable versions from hg repo instead of downloading an increasing
# number of separate patches.
url 'https://vim.googlecode.com/hg/', :revision => '70eff6af1158'
version '7.3.462'
head 'https://vim.googlecode.com/hg/'
def install
system "./configure", "--prefix=#{prefix}",
"--mandir=#{man}",
"--enable-gui=no",
"--without-x",
"--disable-nls",
"--enable-multibyte",
"--with-tlib=ncurses",
"--enable-pythoninterp",
"--enable-cscope",
"--enable-clipboard",
"--with-features=normal"
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