-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
executable file
·64 lines (60 loc) · 1.84 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
#!/bin/sh
BUNDLE_DIR=~/.vim/bundle
VIMRC_PATH=~/.vimrc
# check git command
if type git; then
: # You have git command. No Problem.
else
echo 'Please install git command!'
exit 1;
fi
# make bundle dir and fetch neobundle
echo "start fetch NeoBundle..."
mkdir -p $BUNDLE_DIR
git clone https://github.com/Shougo/neobundle.vim $BUNDLE_DIR/neobundle.vim
echo "done."
# write initial setting for .vimrc
echo "start write NeoBundle initial setting to ${VIMRC_PATH} ..."
{
echo ""
echo ""
echo "\"NeoBundle Scripts-----------------------------"
echo "if has('vim_starting')"
echo " set nocompatible \" Be iMproved"
echo ""
echo " \" Required:"
echo " set runtimepath+=$BUNDLE_DIR/neobundle.vim/"
echo "endif"
echo ""
echo "\" Required:"
echo "call neobundle#rc(expand('$BUNDLE_DIR'))"
echo ""
echo "\" Let NeoBundle manage NeoBundle"
echo "\" Required:"
echo "NeoBundleFetch 'Shougo/neobundle.vim'"
echo ""
echo "\" My Bundles here:"
echo "NeoBundle 'Shougo/neosnippet.vim'"
echo "NeoBundle 'Shougo/neosnippet-snippets'"
echo "NeoBundle 'tpope/vim-fugitive'"
echo "NeoBundle 'kien/ctrlp.vim'"
echo "NeoBundle 'flazz/vim-colorschemes'"
echo ""
echo "\" You can specify revision/branch/tag."
echo "NeoBundle 'Shougo/vimshell', { 'rev' : '3787e5' }"
echo ""
echo "\" Required:"
echo "filetype plugin indent on"
echo ""
echo "\" If there are uninstalled bundles found on startup,"
echo "\" this will conveniently prompt you to install them."
echo "NeoBundleCheck"
echo "\"End NeoBundle Scripts-------------------------"
echo ""
echo ""
} >> ${VIMRC_PATH}
echo "done."
# open neobundle official page.
echo "complete setup NeoBundle!"
echo "open NeoBundle github page. enjoy!!"
open https://github.com/Shougo/neobundle.vim