Ⅰ. 插件描述
a little plugin to allow easy plugin updatesⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'isaacmorneau/vim-update-daily'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'isaacmorneau/vim-update-daily'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'isaacmorneau/vim-update-daily'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/isaacmorneau/vim-update-daily
Ⅳ. 文档说明
# vim-update-daily
A little plugin to allow easy plugin updates
This was created to automatically update vim-plug once a day to keep those great plugins up to date.
Configuration
There are two variables for how it should update right now g:update_file and g:update_daily.
The first handles where to store the file to log when the last update happened while the second is what command to run.
To change either of them simply by initializing them to a diffent path or command.
There is a final variable for when it should update, g:update_open_with_args. The default behavior is to only update when run without any arguments, ie nvim will update while nvim quickedit will not.
The defaults are as follows:
let g:update_file = '~/.local/share/nvim/lastupdate'
let g:update_daily = 'PlugUpgrade | PlugUpdate'
let g:update_open_with_args = 0While this was designed for vim-plug if you change the command it runs it can easily update any other plugin manager