u re and install.sh
This commit is contained in:
parent
483e1c3076
commit
8c4b712389
16
README.md
16
README.md
@ -1,8 +1,14 @@
|
|||||||
# VIM 插件管理系统及配置
|
## vim plugin manager for myself
|
||||||
> 自己使用的VIM插件管理系统和配置文件,方便在各个平台实现同步更新。
|
> 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
|
```bash
|
||||||
git clone https://open.nativeng.org/soragui/vimconf.git
|
git clone https://open.nativeng.org/soragui/vimconf.git
|
||||||
@ -11,9 +17,7 @@ cp -r autoload/ ~/.vim/
|
|||||||
cp .vimrc ~/
|
cp .vimrc ~/
|
||||||
```
|
```
|
||||||
|
|
||||||
然后打开VIM,使用:PlugInstall安装配置在.vimrc文件中的插件。
|
## Reference Link
|
||||||
|
|
||||||
## 参考链接
|
|
||||||
1. [VIM-PLUG](https://github.com/junegunn/vim-plug)
|
1. [VIM-PLUG](https://github.com/junegunn/vim-plug)
|
||||||
2. [OH-MY-VIM](https://github.com/liangxianzhe/oh-my-vim)
|
2. [OH-MY-VIM](https://github.com/liangxianzhe/oh-my-vim)
|
||||||
3. [OH-MY-ZSH](https://github.com/robbyrussell/oh-my-zsh)
|
3. [OH-MY-ZSH](https://github.com/robbyrussell/oh-my-zsh)
|
||||||
|
@ -45,11 +45,17 @@ main() {
|
|||||||
exit 1
|
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"
|
printf "Error: git clone of vim plug conf repo failed\n"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if [ ! -d ~/.vim ]; then
|
||||||
|
mkdir ~/.vim
|
||||||
|
fi
|
||||||
|
cp -r $VIM_PLUG_CONF/autoload ~/.vim
|
||||||
|
cp $VIM_PLUG_CONF/.vimrc ~/.vimrc
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
main
|
main
|
Loading…
Reference in New Issue
Block a user