Vim 7.3 or better Tested on MacOS and Linux
curl https://raw.github.com/crahles/vimfiles/master/bootstrap.sh -o - | sh
Note: If you are using RVM make sure you use system ruby before installation.
rvm use system
Note: If you already have Vim installed ensure it has support for Ruby:
vim --version | grep ruby
You should see +ruby,
if you see -ruby
you need to reinstall Vim with Ruby support
brew install macvim --override-system-vim --enable-clipboard
Add /usr/local/bin
before /usr/bin
in your $PATH
so you use the version of
vim installed by Homebrew, not the one that comes with MacOS.
By installing Vim in this way MacVim and regular Vim are exactly the same.
Server
apt-get install vim-nox
Desktop
apt-get install vim-gnome
If you have an old GNU/Linux distro which does not have Vim 7.3 or better in its repos then install from source.
The configure options below leave out any GUI related features as I have only compiled Vim on a server.
Vim source is in a hg (Mercurial) repository so you need to install the hg
client first, e.g. sudo apt-get install mercurial
.
hg clone https://vim.googlecode.com/hg/ vim
cd vim/vim73
./configure
./configure --with-features=huge --enable-cscope --enable-pythoninterp --enable-rubyinterp --enable-perlinterp --enable-multibyte
make
sudo make install
This installs Vim to /usr/local/bin,
check this is in your $PATH
before /usr/bin
which may contain an older system version of Vim.
If you get an error no terminal library found
install libncurses5-dev
.
Note: You will already have a ~/.vim
folder, either delete or move it.
mv ~/.vim ~/.vim.old
git clone https://github.com/crahles/vimfiles ~/.vim
cd ~/.vim
rake install
or run:
curl https://raw.github.com/crahles/vimfiles/master/bootstrap.sh -o - | sh
cd ~/.vim
./update_bundles.sh
MacOS
brew install ack
brew install ctags
Note: MacOS comes with the BSD version of ctags which is not compatible.
Ubuntu
sudo apt-get install exuberant-ctags
sudo apt-get install ack-grep
sudo ln -s /usr/bin/ack-grep /usr/local/bin/ack