Last active
February 12, 2016 21:47
-
-
Save rothwerx/4bfc8ce77c23e788d4a0 to your computer and use it in GitHub Desktop.
viminstall.sh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # This file can be wget'ed at http://is.gd/vimme | |
| realpath() { | |
| [[ $1 = /* ]] && echo "$1" || echo "$PWD/${1#./}" | |
| } | |
| if ! command -v git; then | |
| echo "You really need git." | |
| exit 1 | |
| fi | |
| mkdir -p ~/.vim/autoload/ | |
| git clone https://gist.github.com/d206b61f91526742e5e7.git | |
| mv d206b61f91526742e5e7 vimrc | |
| vimrcpath=$(realpath vimrc/gistfile1.vim) | |
| ln -sf "$vimrcpath" ~/.vimrc | |
| curl -fLko ~/.vim/autoload/plug.vim https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim | |
| if [[ "$?" != 0 ]]; then | |
| echo "Couldn't curl. Exiting." | |
| exit 1 | |
| fi | |
| vim -c "PlugInstall | qall" | |
| if [[ $(uname) == "Darwin" ]]; then | |
| echo | |
| echo "If installing on OS X, don't forget to:" | |
| echo "brew install caskroom/cask/brew-cask" | |
| echo "brew tap caskroom/fonts" | |
| echo "brew cask install font-inconsolata-for-powerline" | |
| echo "And then change the font in the iTerm profile." | |
| fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment