-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
executable file
·80 lines (62 loc) · 2.43 KB
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
#!/usr/bin/zsh
backup_dir=~/vim.old
rm -Rf $backup_dir
mkdir $backup_dir
echo "Making backups to $backup_dir"
cp -r ~/.vim $backup_dir/ && cp ~/.vimrc $backup_dir/
backup_ok=$?
if [ $backup_ok -ne 0 ];then
echo "Could not backup vim files to $backup_dir. Exiting"
exit 1
else
echo "Backup complete"
fi
echo "$backup_dir contents:"
ls -la $backup_dir
rm -Rf ~/.vim
mkdir ~/.vim
mkdir ~/.vim/autoload
mkdir ~/.vim/backup
mkdir ~/.vim/bundle
mkdir ~/.vim/colors
mkdir ~/.vim/swap
mkdir ~/.vim/syntax
echo "Installing pathogen"
curl -LSso ~/.vim/autoload/pathogen.vim https://tpo.pe/pathogen.vim
echo "Installing nerdtree"
git clone https://github.com/scrooloose/nerdtree.git ~/.vim/bundle/nerdtree
echo "Installing airbar"
git clone https://github.com/vim-airline/vim-airline ~/.vim/bundle/vim-airline
echo "Fetching PaperColor Theme"
git clone https://github.com/NLKNguyen/papercolor-theme.git /tmp/vim.papercolor
mv /tmp/vim.papercolor/colors/PaperColor.vim ~/.vim/colors/
rm -Rf /tmp/vim.papercolor
echo "Installing python highlighting"
git clone https://github.com/hdima/python-syntax.git /tmp/vim.python
mv /tmp/vim.python/syntax/python.vim ~/.vim/syntax/
rm -Rf /tmp/vim.python
echo "Adding custom .vimrc"
git clone https://github.com/mlmarius/.vim.git /tmp/vim.customisations
mv /tmp/vim.customisations/.vimrc ~/.vimrc
rm -Rf /tmp/vim.customisations
echo "Adding Raimodi/delimitMate"
git clone https://github.com/Raimondi/delimitMate.git ~/.vim/bundle/delimit-mate
echo "Adding tcomment"
git clone https://github.com/tomtom/tcomment_vim.git ~/.vim/bundle/tcomment
echo "Adding MRU plugin"
git clone https://github.com/yegappan/mru.git ~/.vim/bundle/mru
# Plugin Command-T https://github.com/wincent/command-t !! verry nice fuzzy finder but requires ruby
echo "Adding SnipMate"
cd ~/.vim/bundle
git clone https://github.com/tomtom/tlib_vim.git
git clone https://github.com/MarcWeber/vim-addon-mw-utils.git
git clone https://github.com/garbas/vim-snipmate.git
# Copy some snippets
git clone https://github.com/honza/vim-snippets.git
# git clone https://github.com/rbonvall/snipmate-snippets-bib.git #BibTex files
# git clone https://github.com/sudar/vim-arduino-snippets.git
# git clone https://github.com/zedr/zope-snipmate-bundle.git
# git clone https://github.com/bonsaiben/bootstrap-snippets.git
# Specialized PHP snippets
# git clone https://github.com/sniphpets/sniphpets-common.git
# git clone https://github.com/sniphpets/sniphpets-symfony.git