#!/bin/bash
#===============================================================================
#
#          FILE:  setup_vim.sh
# 
#         USAGE:  ./setup_vim.sh 
# 
#   DESCRIPTION:  
# 
#       OPTIONS:  ---
#  REQUIREMENTS:  ---
#          BUGS:  ---
#         NOTES:  ---
#        AUTHOR:   (), 
#       COMPANY:  
#       VERSION:  1.0
#       CREATED:  19/08/2008 12:02:36 JST
#      REVISION:  ---
#===============================================================================

mkdir -p ~/Applications
# Current preference for this one over MacVim because it is faster to load and colors are better
curl http://macvim.org/OSX/files/binaries/OSX10.4/vim7.0.224.tar.bz2 > ./vim7.0.224.tar.bz2

# curl "http://repo.or.cz/w/MacVim.git?a=snapshot;h=bf2ed5675e67b37b748edfb86c9273adcba815b8;sf=tgz" > ./MacVim-src-1.2.tar.gz
# echo "MacVim Homepage at: http://code.google.com/p/macvim/"
# tar zxf ./MacVim-src-1.2.tar.gz
# cd MacVim/src
# touch auto/<###>.sh
# ./configure --enable-gui=MacVim
# make
# cd MacVim
# xcodebuild

mkdir -p ~/.vim/.cache
cd ~/.vim/.cache
curl http://www.vim.org/scripts/download_script.php?src_id=7701 > ./taglist_45.zip
curl http://www.vim.org/scripts/download_script.php?src_id=9123 > ./bash-support.zip
curl http://www.vim.org/scripts/download_script.php?src_id=9141 > ./chlordane.vim
curl http://www.vim.org/scripts/download_script.php?src_id=7675 > ./headerguard-0.1.0.zip
curl http://www.vim.org/scripts/download_script.php?src_id=7722 > ./omnicppcomplete-0.41.zip 
curl http://www.vim.org/scripts/download_script.php?src_id=7384 > ./code_complete.vim
curl http://www.vim.org/scripts/download_script.php?src_id=7461 > ./vimExplorer.vim
curl http://www.vim.org/scripts/download_script.php?src_id=8830 > ./autoinclude.vim
curl http://www.vim.org/scripts/download_script.php?src_id=8341 > ./renamec.vim
curl http://www.vim.org/scripts/download_script.php?src_id=8029 > ./refactor.vim
curl http://www.vim.org/scripts/download_script.php?src_id=8483 > ./doxygen-support.zip
curl http://www.vim.org/scripts/download_script.php?src_id=7289 > ./rectcut.vim
curl http://www.vim.org/scripts/download_script.php?src_id=7877 > ./lusty-explorer.vim
curl http://www.vim.org/scripts/download_script.php?src_id=6878 > ./hints_man3.vba.gz
curl http://www.vim.org/scripts/download_script.php?src_id=8087 > ./echofunc.vim
curl http://www.vim.org/scripts/download_script.php?src_id=6682 > ./SnippetsMgr.zip
curl http://www.vim.org/scripts/download_script.php?src_id=8976 > ./NERD_tree.zip
curl http://www.vim.org/scripts/download_script.php?src_id=6181 > ./c_function_plugin.vim
curl http://www.vim.org/scripts/download_script.php?src_id=9145 > ./trinity.zip
curl http://www.vim.org/scripts/download_script.php?src_id=9144 > ./srcexpl.vim
curl http://www.vim.org/scripts/download_script.php?src_id=9146 > ./cvim.zip
curl http://www.vim.org/scripts/download_script.php?src_id=7837 > ./lusty-juggler.vim

cd ..
# unzip .cache/taglist_45.zip
# unzip .cache/bash-support.zip



