-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.sh
executable file
·82 lines (61 loc) · 2.5 KB
/
setup.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
81
82
#!/bin/bash
# Until I am comfortable with git submodules, this will have to do. Also, it is
# a simple way to get the newest code.
getgit() {
echo "=== Installing "$2" ===="
if [ -e bundle/$2 ]; then
pushd bundle/$2
git pull
popd
else
git clone --recursive $1 bundle/$2
fi
}
# .vimrc must be symlinked to the home directory to enable it for the user.
if [ ! -e $HOME/.vimrc ]; then
ln -s $HOME/.vim/.vimrc $HOME/.vimrc
fi
# In vimrc I specify a .vim-tmp directory to keep temporary files. This keeps
# my directories clean of vim temporary files. However, that directory needs to
# exist.
if [ ! -e $HOME/.vim-tmp ]; then
mkdir $HOME/.vim-tmp
fi
# Create a bundle directory for all the git packages
if [ ! -e bundle ]; then
mkdir bundle
fi
# Solarized gives great syntax and editing colors
getgit git://github.com/altercation/vim-colors-solarized.git vim-colors-solarized
# snipmate adds snippet functionality
getgit https://github.com/msanders/snipmate.vim.git snipmate.vim
# zope snipmate bundle
getgit http://github.com/zedr/zope-snipmate-bundle.git zope-snipmate-bundle
# django snipmate bundle
getgit http://github.com/robhudson/snipmate_for_django.git snipmate_for_django
# Sparkup expands a haml-like syntax to html
getgit https://github.com/bingaman/vim-sparkup.git vim-sparkup
# Surround stuff with tags
getgit https://github.com/tpope/vim-surround.git vim-surround
# Extends surround with specific tags
getgit https://github.com/tpope/vim-ragtag.git vim-ragtag
# Repeats things in script files.
getgit https://github.com/tpope/vim-repeat.git vim-repeat
# On-the-fly python syntax checking
getgit https://github.com/nvie/vim-flake8.git vim-flake8
# Mako syntax highlighting, used with pyramid
getgit https://github.com/vim-scripts/mako.vim.git mako.vim
# NERDTree tree browser
getgit https://github.com/scrooloose/nerdtree.git nerdtree
# Syntastic syntax checker
getgit https://github.com/scrooloose/syntastic.git syntastic
# Shows errors in the status line. Makes the Syntastic workflow smoother.
getgit https://github.com/dannyob/quickfixstatus.git quickfixstatus
# Arduino compilation/upload from within vim
getgit https://github.com/tclem/vim-arduino.git vim-arduino
# Arduino syntax
getgit https://github.com/sudar/vim-arduino-syntax
# openscad syntax file
getgit https://github.com/sirtaj/vim-openscad.git vim-openscad
# django plus for better template indentation. Commented out, does not work
# getgit https://github.com/tweekmonster/django-plus.vim django-plus