自动更新 VIM 插件?
vim 插件可以自动更新吗?
Is it possible to update vim plugins automatically?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
vim 插件可以自动更新吗?
Is it possible to update vim plugins automatically?
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(6)
要为这个老问题提供最新答案,Vundle
效果真的很棒。它模拟 ruby
bundle
gem,您只需在.vimrc
中配置 Bundle,然后在 vim 中运行:BundleInstall!
即可。To provide an up to date answer to this old question, Vundle
works really great. It simulates the ruby
bundle
gem, you simply configure your Bundles in.vimrc
and then run:BundleInstall!
inside vim.这个 vim 插件似乎可以满足您的需求,尽管它没有有一段时间没有更新了。从未使用过它,但作者过去写过“几个”vim 插件。
This vim plugin seems to do what you are after, though it hasn't been updated in a while. Never used it, but the author has written a "few" vim plugins in the past.
vim-addon-manager 具有函数:UpdateAddons [{ name} ...] 当不带参数调用时,它会更新所有已安装的插件。
vim-addon-manager has the function :UpdateAddons [{name} ...] which when called with no arguments updates all installed addons.
我的操作系统 (Archlinux) 有一堆包含 vim 插件的软件包。查看您的操作系统是否有类似的软件包。
My operating systems (Archlinux) has a bunch of packages containing vim plugins. Look into you OS for similar packages.
例如,如果插件版本在 git 中,您可以 pathogen 和将插件放在另一个目录中。那么更新只是一个命令。
If the plugin versioned in git, for example, you can pathogen and put the plugin in another dir. Then to update is only a command.
我更喜欢 bash 脚本。然后您可以将其设置为 cronjob,并且您不依赖于其他支持更新功能的脚本。
I prefer a bash script. Then you can have it set as a cronjob, and you don't depend on other scripts supporting the ability to update.