-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·33 lines (25 loc) · 789 Bytes
/
Copy pathinstall.sh
File metadata and controls
executable file
·33 lines (25 loc) · 789 Bytes
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
#!/usr/bin/env sh
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
echo =\> Cloning the plugin manager
mkdir -p ~/.vim/autoload
curl -fLo ~/.vim/autoload/plug.vim \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
echo =\> Linking vim directories
ln -s $DIR/vimrc $HOME/.vimrc
ERR=$0
ln -s $DIR/gvimrc $HOME/.gvimrc
if [[ $ERR != 0 || $0 != 0 ]]; then
echo =\> Installation not complete
return 1
fi
echo =\> Installing plugins
echo " NOTE: It's safer to download spell files after the installation (with
MacVim etc)"
vim +PlugInstall +qall
if [[ $0 != 0 ]]; then
echo =\> Installation not complete
return 1
fi
echo =\> Copying default configuration for YouCompleteMe
cp $DIR/ycm_extra_conf.py $HOME/.ycm_extra_conf.py
echo =\> Done