forked from spf13/spf13-vim
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request spf13#20 from OriginalCopy/master
6 commits to make your life less frustrating and a bugfix
- Loading branch information
Showing
5 changed files
with
63 additions
and
12 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
.DS_Store | ||
*.pyc | ||
*._* | ||
*.vim/sessions/ |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/usr/bin/env bash | ||
|
||
for i in .ctags .gvimrc .vim .vimrc .vimbackup .vimswap .vimviews .vim; do | ||
rm -rf ~/$i | ||
done |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#!/usr/bin/env bash | ||
# This script fetches or updates local vim scripts which are not git modules | ||
|
||
MYDIR="`dirname $(cd "${0%/*}" 2>/dev/null; echo "$PWD"/"${0##*/}")`" | ||
CURL="curl -O -J" | ||
|
||
|
||
#TODO install each download based on the file type | ||
#currently, the following are zips: bufexplorer, cvim, taglist | ||
|
||
VIMFILES=("sessionman.vim" "autoclose.vim" "a.vim" "showmarks.vim") | ||
VIMFILESURLS=("http://www.vim.org/scripts/download_script.php?src_id=15599" | ||
"http://www.vim.org/scripts/download_script.php?src_id=10873" | ||
"http://www.vim.org/scripts/download_script.php?src_id=7218" | ||
"http://www.vim.org/scripts/script.php?script_id=152" | ||
) | ||
VIMFILESLOCATIONS=(".vim/bundle/rbtweaks/plugin/" | ||
".vim/bundle/rbtweaks/plugin/" | ||
".vim/bundle/rbtweaks/plugin/" | ||
".vim/bundle/rbtweaks/plugin/" | ||
) | ||
|
||
for (( i = 0 ; i < ${#VIMFILES[@]} ; i++ )) | ||
do | ||
cd ${VIMFILESLOCATIONS[$i]} | ||
if [ -e ${VIMFILES[$i]} ] | ||
then rm ${VIMFILES[$i]} #TODO do a diff | ||
fi | ||
$CURL ${VIMFILESURLS[$i]} | ||
done |
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