-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathinit.sh
More file actions
24 lines (19 loc) · 736 Bytes
/
Copy pathinit.sh
File metadata and controls
24 lines (19 loc) · 736 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
#!/bin/bash
basepath=$(pushd `dirname $0` > /dev/null; pwd; popd > /dev/null)
if [ ! -f "/etc/yum.repos.d/vim-latest.repo" ];then
sudo curl -L https://copr.fedorainfracloud.org/coprs/lantw44/vim-latest/repo/epel-7/lantw44-vim-latest-epel-7.repo -o /etc/yum.repos.d/vim-latest.repo
sudo yum update -n
sudo yum install vim-enhanced global-ctags ShellCheck -y
fi
if [ ! -f "${basepath}/autoload/plug.vim" ];then
curl -fLo ${basepath}/vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
fi
rm -fr ~/.vim
ln -sf ${basepath} ~/.vim
ln -sf ~/.vim/vimrc ~/.vimrc
ln -sf ~/.vim/config/_wildignore.options ~/.cache/tags/_wildignore.options
vim << EOF
:PlugUpdate
:q
:q
EOF