Last active
December 14, 2015 02:09
-
-
Save mxswd/5011745 to your computer and use it in GitHub Desktop.
This file contains 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
#!/usr/bin/env bash | |
# Usage: mx configvim | |
# Summary: Configures / updates vim | |
# Help: Run it, get a configured vim. | |
set -e | |
case "$1" in | |
# Install .vim | |
install) | |
pushd ~ | |
git clone [email protected]:maxpow4h/vim.git .vim | |
echo "Make sure you 'brew install ack' for :Ack to work" | |
ln -s .vim/vimrc .vimrc | |
git submodule init | |
git submodule update | |
popd | |
;; | |
# Update the plugins | |
update) | |
pushd ~/.vim | |
git pull | |
git submodule foreach git pull | |
popd | |
;; | |
# Usage | |
*) | |
echo "USAGE: mx configvim [install | update]" | |
exit 1 | |
;; | |
esac | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment