diff --git a/README.md b/README.md index b306285..7af1d81 100644 --- a/README.md +++ b/README.md @@ -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) diff --git a/tools/install.sh b/tools/install.sh index eef5191..4c7a4f6 100644 --- a/tools/install.sh +++ b/tools/install.sh @@ -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 \ No newline at end of file +main