forked from fisadev/fisa-vim-config
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install
executable file
·29 lines (23 loc) · 926 Bytes
/
install
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
#!/bin/bash
# install fisa vim config
echo '==============================='
echo 'start to install dependences...'
case "$OSTYPE" in
darwin*) brew install vim git pip curl;;
linux*) sudo apt-get install python-pip curl vim exuberant-ctags git ack-grep;;
*) echo "unknown: OS: $OSTYPE, U should install dependences by yourself" ;;
esac
sudo pip install dbgp vim-debug pep8 flake8 pyflakes isort yapf
echo '==============================='
echo 'start to download vimrc file...'
cp ~/.vimrc /tmp/vimrc.bak
curl -O https://raw.githubusercontent.com/daigong/fisa-vim-config/master/.vimrc
mv .vimrc ~/.vimrc
cp ~/.gvimrc /tmp/gvimrc.bak
curl -O https://raw.githubusercontent.com/daigong/fisa-vim-config/master/.gvimrc
mv .gvimrc ~/.gvimrc
echo '==============================='
echo 'start to install vim plugins...'
vim +BundleClean +BundleInstall! +qa
sudo chown $USER ~/.vim/
echo 'down! enjoy it!'