Posts Tagged ‘vimperator’

vimperator之map,qmark

Posted in 玩转佳软 on 十一月 14th, 2009 by 6ca6cca – Be the first to comment

通过设置map和qmark能极大提高我们使用的效率。

例如经常要访问firefox菜单,那么就在.vimperatorrc中加了这么一句

map e :emenu

这样可以像按下o就自动输出:open一样,按e也能来代替:emenu了。

另外用map也可实现类似gh的操作。如

map gb :open http://blog.kechongchong.com/<CR>
map gB :tabopen http://blog.kechongchong.com/<CR>

通过加入这两句,就可直接按gb在当前页打开本站,gB则在新的标签页打开本站。

对于网站,也可以使用qmark来实现快速访问,如:

:qmark m http://www.gmail.com/

加这么一句,就能使用gom在当前页打开,gnm则在新标签页打开gmail了。

vimperator设置firefox启动默认页

Posted in 玩转佳软 on 十一月 7th, 2009 by 6ca6cca – Be the first to comment

vimperator真是个好东西,用到现在唯一有些不适应的是每次启动firefox总要打开上次打开的页面,即使在firefox选项页里设置成空白页面也不行。

不过,今天终于把这问题给完美解决了,只怪自己对vimperator还是了解得不够深入啊。
只要在.vimperatorrc文件中,添加如下一句,重启即可

:set! browser.startup.page=0

说明:
1. :se[t]! {preference}={value}
Change any Firefox {preference} (those in the about:config window). You can also reset/delete those preferences with :set! {preference}&.
该语句可以用来修改firefox任何选项参数,选项可以通过about:config查看。

2.选项browser.startup.page,有四个值可以设置,我在配置中选择了0.
0:Start with a blank page (about:blank).
1:Start with the web page(s) defined as the home page(s). (Default)
2:Load the last visited page.
3:Resume the previous browser session