2017-04-01 07:38:55 -04:00
|
|
|
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
|
2012-05-29 16:24:34 -04:00
|
|
|
cd ~/.vim_runtime
|
|
|
|
|
2012-05-30 13:02:38 -04:00
|
|
|
echo 'set runtimepath+=~/.vim_runtime
|
2012-05-29 16:12:10 -04:00
|
|
|
|
|
|
|
source ~/.vim_runtime/vimrcs/basic.vim
|
|
|
|
source ~/.vim_runtime/vimrcs/filetypes.vim
|
|
|
|
source ~/.vim_runtime/vimrcs/plugins_config.vim
|
|
|
|
source ~/.vim_runtime/vimrcs/extended.vim
|
|
|
|
|
2012-05-30 12:31:10 -04:00
|
|
|
try
|
|
|
|
source ~/.vim_runtime/my_configs.vim
|
|
|
|
catch
|
|
|
|
endtry' > ~/.vimrc
|
2012-05-29 16:12:10 -04:00
|
|
|
|
|
|
|
echo "Installed the Ultimate Vim configuration successfully! Enjoy :-)"
|
2019-04-09 10:53:15 -04:00
|
|
|
|
|
|
|
# check for mvim installation
|
|
|
|
if [[ "$OSTYPE" == "darwin"* ]]; then
|
|
|
|
echo "Checking for brew ....."
|
|
|
|
which -s brew
|
|
|
|
if [[ $? != 0 ]] ; then
|
|
|
|
echo "Brew not found. Starting install now ...."
|
|
|
|
# Install Homebrew
|
|
|
|
# https://github.com/mxcl/homebrew/wiki/installation
|
|
|
|
/usr/bin/ruby -e "$(curl -fsSL https://raw.github.com/gist/323731)"
|
|
|
|
echo "Brew install complete!"
|
|
|
|
else
|
|
|
|
echo "Brew found. Running update...."
|
|
|
|
brew update
|
|
|
|
fi
|
|
|
|
echo "Installing macvim and vim"
|
|
|
|
brew install macvim vim
|
|
|
|
fi
|