我使用病原体进行插件管理,许多插件作者没有具体显示该软件的版本,因此我不时从GitHub复制并覆盖我的所有插件,我在我的电脑中安装了git环境,是否有任何命令都可以从GitHub检查本地软件版本并自行更新?
答案 0 :(得分:0)
你想要Vundle:https://github.com/gmarik/vundle
Vundle将使用与Pathogen相同的插件布局,并且还将在~/.vim/bundle/
下安装插件,但它将为您管理Git克隆和更新。您只需在Bundle
中将插件列为~/.vimrc
,然后运行:BundleInstall
即可安装。
使用Vundle,您可以运行:BundleInstall!
将已安装的插件更新到最新版本。
另见:Tim Lai的博客文章“Moving Up: Upgrading From Pathogen to Vundle”。
答案 1 :(得分:0)
如果您安装了git,那么它就像
一样简单在这里,我使用nerdtree作为例子:
$ cd .vim/bundle/nerdtree
$ git pull
$ cd .vim/bundle/some-nifty-plugin-on-github-or-similar
我有一个简单的bash脚本,它为我使用的插件执行上述操作。全部更新就像运行.vim/bundle/update.sh
要检查版本,请cd到该文件夹并执行:
$ git log # displays the complete commit-log
$ git log -1 # the latest commit message
希望我理解正确...