-
Notifications
You must be signed in to change notification settings - Fork 0
/
vim_fetch.sh
executable file
·119 lines (104 loc) · 3.68 KB
/
vim_fetch.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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
#!/bin/bash
#
# vim_fetch.sh by nick shin <nick.shin@gmail.com>
#
# this file can be found at: https://github.com/nickshin/vimfiles
#
# for best results, symbolic link to the folder $dst below for ~/.vim
# ============================================================
# note: removed .vimrc appends
# + this way, i can run this script periodically to get latest
# + instead, just make a note of it at the end of the run...
# ============================================================
#dst=~/.vim
dst=`pwd`'/dotvim.test'
# ============================================================
bundle_setup()
{
echo "Did you install some essential packages?"
echo "(see this script for details)"
echo "PRESS ANY KEY TO CONTINUE OR CTRL+C TO EXIT"
read
mkdir -p $dst/autoload $dst/bundle
}
housekeeping()
{
echo "."
echo "."
echo "don't forget to add the following to your .vimrc"
echo 'execute pathogen#infect()'
echo 'call pathogen#helptags()'
echo "."
echo "Happy Vimming!"
}
# ============================================================
bundle_git()
{
cd $dst/bundle
# ------------------------------------------------------------
git clone git://github.com/tpope/vim-pathogen
cp vim-pathogen/autoload/* $dst/autoload/.
# echo execute pathogen#infect() >> $dst/.vimrc
# ------------------------------------------------------------
git clone git://github.com/tpope/vim-fugitive
git clone git://github.com/tpope/vim-repeat
git clone git://github.com/tpope/vim-surround
git clone git://github.com/tpope/vim-unimpaired
# ------------------------------------------------------------
git clone git://github.com/Shougo/neomru.vim neomru
git clone git://github.com/Shougo/unite.vim
git clone git://github.com/Shougo/vimproc
cd vimproc
make
# WARNING: doc file sez no work on Cygwin - use GitBash
cd ..
# ------------------------------------------------------------
# commands
git clone git://github.com/mileszs/ack.vim
# sudo apt-get install ack-grep
# sudo apt-get install silversearcher-ag
git clone git://github.com/sjl/gundo.vim gundo
git clone git://github.com/joonty/vdebug
git clone git://github.com/vim-scripts/ZoomWin
# ------------------------------------------------------------
# editing
git clone git://github.com/garbas/vim-snipmate
git clone git://github.com/tomtom/tlib_vim.git
git clone git://github.com/MarcWeber/vim-addon-mw-utils.git
git clone git://github.com/honza/vim-snippets.git
git clone git://github.com/rstacruz/sparkup
cd sparkup
make vim-pathogen
cd ..
git clone git://github.com/godlygeek/tabular.git
git clone git://github.com/tommcdo/vim-exchange
# ------------------------------------------------------------
git clone git://github.com/tpope/vim-jdaddy
git clone git://github.com/maksimr/vim-jsbeautify
cd vim-jsbeautify
git submodule update --init --recursive
cd ..
git clone git://github.com/ternjs/tern_for_vim
cd tern_for_vim
npm install
cd ..
git clone git://github.com/elzr/vim-json
# ------------------------------
git clone git://github.com/elixir-lang/vim-elixir
# ------------------------------------------------------------
git clone git://github.com/bling/vim-airline
# i like the inactive line a little brighter
perl -pi -e 's/303030/a0a0a0/' vim-airline/autoload/airline/themes/dark.vim
git clone git://github.com/Valloric/YouCompleteMe
cd YouCompleteMe
git submodule update --init --recursive
# sudo apt-get install build-essential cmake
# sudo apt-get install python-dev python3-dev golang-go
./install.py --clang-completer --gocode-completer --tern-completer
cd ..
git clone git://github.com/vim-scripts/multisearch.vim
}
# ============================================================
bundle_setup
bundle_git
housekeeping