u re and install.sh

This commit is contained in:
soragui 2020-09-21 22:38:35 +08:00
parent 483e1c3076
commit 8c4b712389
2 changed files with 18 additions and 8 deletions

View File

@ -1,8 +1,14 @@
# VIM 插件管理系统及配置
> 自己使用的VIM插件管理系统和配置文件方便在各个平台实现同步更新。
## vim plugin manager for myself
> This is a vim plugin manager tools using vim-plug inorder to learn and cop for many devices and os .
#### Install using script
## 手动安装
```bash
curl https://open.nativeng.org/soragui/vimconf/raw/branch/master/tools/install.sh | sh
```
Open vim in the terminal and :PlugInstall to install the plugin.
## Install mannually
```bash
git clone https://open.nativeng.org/soragui/vimconf.git
@ -11,9 +17,7 @@ cp -r autoload/ ~/.vim/
cp .vimrc ~/
```
然后打开VIM使用:PlugInstall安装配置在.vimrc文件中的插件。
## 参考链接
## Reference Link
1. [VIM-PLUG](https://github.com/junegunn/vim-plug)
2. [OH-MY-VIM](https://github.com/liangxianzhe/oh-my-vim)
3. [OH-MY-ZSH](https://github.com/robbyrussell/oh-my-zsh)

View File

@ -45,11 +45,17 @@ main() {
exit 1
}
env git clone --depth=1 git@github.com:soragui/vimconfplug.git $VIM_PLUG_CONF || {
env git clone --depth=1 https://open.nativeng.org/soragui/vimconf.git $VIM_PLUG_CONF || {
printf "Error: git clone of vim plug conf repo failed\n"
exit 1
}
if [ ! -d ~/.vim ]; then
mkdir ~/.vim
fi
cp -r $VIM_PLUG_CONF/autoload ~/.vim
cp $VIM_PLUG_CONF/.vimrc ~/.vimrc
}
main
main