Google Reader 与 Vimperator 快捷键冲突的解决之道

在转到 Google Reader 之后,其强大的快捷键功能我一直用得很爽。不过有一点,Google Reader 的快捷键与我喜欢的 Firefox 扩展 Vimperator 有冲突。虽然可以通过临时禁用 Vimperator 来解决,但毕竟需要按一次 Ctrl + z,还是有点不爽。某天,翻阅 Vimperator 的 Wiki,于是这个问题得到了完美的解决。

具体的解决办法是,向 ~/.vimperatorrc 文件加入下列内容即可:

autocmd LocationChange .* :js modes.passAllKeys = /mail.google.com/.test(buffer.URL) || /google.com\/reader\//.test(buffer.URL)

当使用 Google Reader 阅读新闻时,就会自动进入 Vimperator 的 PASS THROUGH 状态,而要正常使用 Google Reader 快捷键也没有什么问题了。

BTW:这项内容对于 Gmail 也是有效的。

Read More:

10 Comments

  1. 1 我爱吃苹果 Commented @ 2008-10-05 9:58Reply to this comment

    这两个插件是干啥用的???

  2. 2 tommy Commented @ 2008-10-05 11:23Reply to this comment

    vimperator的autoignorekey插件可以实现这个功能。 在vimperator的主页上可以看到一个plugins的svn连接,上面能找到这个插件。上面还有一些有用的插件

  3. 3 Dreamseeker Commented @ 2008-10-05 16:50Reply to this comment

    不错哦~ 不过还是习惯用鼠标去点, 呵呵~

  4. 4 tiger Commented @ 2008-10-05 20:12Reply to this comment

    好东西,vimperator自带的教程中还有很多提示,是个非常棒的插件。好多script因版本问题似乎都不能使用了。

  5. 5 lun Commented @ 2008-10-05 21:32Reply to this comment

    这东西好像对图片的支持不是太好呀,

  6. 6 邱焜 Commented @ 2008-10-05 21:38Reply to this comment

    很好

  7. 7 alexmajy Commented @ 2008-10-07 23:10Reply to this comment

    我每次用reader的时候没啥问题,但是在gmail里pass through感觉总是怪怪的,不怎么听使唤,不知道大家有没有遇到过着情况?

  8. 8 yugushen Commented @ 2008-12-29 20:48Reply to this comment

    @alexmajy

    我的也是,PASS THROUGH 好像对 Gmail 不起作用。Firefox 3.0.5 + Vimperator 1.2

  9. 9 Hansion Commented @ 2009-03-29 11:29Reply to this comment

    开了这插件,如何把它关掉,因不熟悉vim命令! 简洁的蒙了

  10. 10 chisiyuan Commented @ 2009-03-29 13:03Reply to this comment

    @Hansion

    按ESC,输入":addons"(没有引号),回车,这样addons的窗口就出来了,禁用或卸载就可以了