35 lines
929 B
Bash
Executable File
35 lines
929 B
Bash
Executable File
mkdir -p ~/.vim/pack/themes/opt/
|
|
mkdir -p ~/.vim/pack/plugins/start
|
|
|
|
|
|
# vim-plug setup
|
|
curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
|
|
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
|
|
|
|
cat >> ~/.bashrc<< EOF
|
|
call plug#begin()
|
|
call plug#end()
|
|
EOF
|
|
|
|
|
|
git clone ssh://git@git.home.recchia.dev/matt/vim-solarized8.git
|
|
if [ $? -eq 0 ]; then
|
|
echo "Cloned vim solarized theme from local mirror"
|
|
else
|
|
git clone https://github.com/lifepillar/vim-solarized8.git ~/.vim/pack/themes/opt/solarized8
|
|
echo "Cloned vim solarized theme from github"
|
|
fi
|
|
|
|
cat >> ~/.bashrc<< EOF
|
|
sh ~/.vim/pack/themes/opt/solarized8/scripts/solarized8.sh
|
|
EOF
|
|
|
|
cat > ~/.vimrc<< EOF
|
|
set background=dark
|
|
colorscheme solarized8
|
|
EOF
|
|
|
|
cd ~/.vim/pack
|
|
git init
|
|
git submodule add https://github.com/scrooloose/nerdtree plugins/start/nerdtree
|
|
git submodule add https://github.com/Xuyuanp/nerdtree-git-plugin plugins/start/nerdtree-git-plugin |