Skip to content

Instantly share code, notes, and snippets.

@mxswd
Last active December 14, 2015 02:09
Show Gist options
  • Save mxswd/5011745 to your computer and use it in GitHub Desktop.
Save mxswd/5011745 to your computer and use it in GitHub Desktop.
#!/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