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

23 lines
1.1 KiB
Bash
Raw Normal View History

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