Thursday Night

Paul Betts’s personal website / blog / what-have-you

Vim shortcuts in the browser using Vimperator

3 comments

I believe I’ve taken the ‘keyboard shortcuts’ thing to the next level – using Vimperator, I’ve now got “Vim-style” keyboard shortcuts in Firefox. I can open tabs, search in Google, and navigate websites without using the mouse. And it really is faster – except if a page has a ton of links (>300). The only bug I’ve found is that :o pen doesn’t work with keyword shortcuts (ie “:open wp Test” does a Google search for wp Test instead of opening the Wikipedia page for test)

One of the things I did do though, was use set guioptions=mT, because I use other toolbar buttons like the del.icio.us bookmark button, and I suspect it’s less confusing for other people to not have an address bar

Written by Paul Betts

August 1st, 2007 at 11:40 pm

Posted in Programming

3 Responses to 'Vim shortcuts in the browser using Vimperator'

Subscribe to comments with RSS or TrackBack to 'Vim shortcuts in the browser using Vimperator'.

  1. Hi
    You can use that keyword shortcut with :o wp test

    Tejaswi

    17 Apr 08 at 12:14 am

  2. > :o pen doesn’t work with keyword shortcuts

    Firstly, that isn’t a bug. You’re just not using it right. Move out all your searchplugin xml files from your /usr/share/firefox/searchplugins (*NIX) or Program Files directory (Winblows) to your ~/.mozilla/profiles//searchplugins and edit all of them by hand to include an . If the alias is wp for wikipedia :o wp Adolf Hitler opens that wikipedia page perfectly fine.

    > because I use other toolbar buttons like the del.icio.us bookmark button

    Oh, you can avoid that too. Just create a new bookmark and fill some code in the place of location (listed below). Put in foo in the ‘keyword’ box and :o foo to bookmark the current page with the tags .

    javascript:e=%22%22+(window.getSelection ? window.getSelection() : document.getSelection ? document.getSelection() : document.selection.createRange().text);void(delicious = open(’https://api.del.icio.us/v1/posts/add?description=’+encodeURIComponent(document.title)+’&extended=’+encodeURIComponent(e).replace(/ /g, %22+%22)+’&tags=%s’+'&url=’+encodeURIComponent(window.location.href),delicious’,'toolbar=no,width=500,height=150′),setTimeout(’delicious.close()’,5000))

    artagnon

    24 Apr 08 at 2:17 am

  3. @artagnon: Actually at the time, it wasn’t supported – they added it in a more recent version.

    Paul Betts

    27 Apr 08 at 12:12 am

Leave a Reply