This repository has been archived on 2024-06-08. You can view files and clone it, but cannot push or open issues or pull requests.
vimrc/install.sh
2021-07-03 17:16:21 +08:00

24 lines
1.1 KiB
Bash
Executable File

#!/usr/bin/env bash
echo " "
echo " ________ _______ _______ __ ___ __ __ .__ __. _______ "
echo " | / | ____|| ____|| |/ / | | | | | \ | | / _____| "
echo " ---/ / | |__ | |__ | / | | | | | \| | | | __ "
echo " / / | __| | __| | < | | | | | . | | | |_ | "
echo " / /----.| |____ | |____ | . \ | ----.| | | |\ | | |__| | "
echo " /________||_______||_______||__|\__\ |_______||__| |__| \__| \______| "
echo " "
echo " @author:zeekling<zeekling@zeekling.cn> "
echo " "
echo "开始安装vim-plug"
mkdir -p ~/.vim/autoload
curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
echo "安装vim-plug完成"
PLUG_FILE="${HOME}/.vim/plugged"
if [ ! -f ${PLUG_FILE} ]; then
mkdir ${PLUG_FILE} -p
fi
echo "拷贝配置文件"
cp vimrc ~/.vimrc && cp -rf vim/* ~/.vim/
echo "拷贝完成,打开vim"