首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Vimperator重新加载插件

Vimperator重新加载插件
EN

Stack Overflow用户
提问于 2015-06-02 02:31:04
回答 1查看 715关注 0票数 1

如何在修改后重新加载vimperator插件?现在我重新启动浏览器,每次我需要重新加载,但这是噩梦,开发这样的插件。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2015-06-04 23:16:37

Vimperator似乎没有插件的重新加载命令。最近的命令是

  • *加载插件 它将加载任何卸载的插件。如果您能够找到卸载插件的方法,可能是使用Javascript,那么您应该能够使用它来重新加载它。
  • 更新:您可以使用以下命令 ::命令!reloadPlugins :js liberator.pluginFiles = {};liberator.loadPlugins(); 这将重新加载所有插件。
代码语言:javascript
复制
- Note that this command as written just "deregisters" plugins, which allows them to be reloaded. It doesn't remove any commands or bindings defined by the previous version of the plugin, just overwrites them. 
- If you want to actually remove the previous commands and bindings (eg. if some commands have been removed from the plugin), you could write a "clean up" command for a specific plugin using `:delcommand`, `:unmap`, etc. to delete each command/mapping/etc defined in the plugin. 
- You could also modify the `:reloadPlugins` command above, to use `:comclear`, which removes all user-defined bindings. In that case, you'd need to `:source ~/.vimperatorrc` as well as reload the plugins.

关于五肽,有几个相关的命令:

  • *delgroup :loadplugins 它将删除插件的命令组,然后加载任何卸载的插件(包括刚刚删除的插件)。这是最快的选择。您可以将这些命令组合成键绑定,例如: ::map -g用户-b :delgroup \ loadplugins
  • 最确定的解决办法是: *重新哈希 这将重新启动五酮(而不重新启动FF)。这可能需要几秒钟,取决于您的系统。
票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/30586384

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档