[Vimperator] JavaScript for Google Bookmark(let)

Andrzej Ostruszka andrzej.ostruszka at gmail.com
Wed Feb 20 14:30:16 PST 2008


On Wed, Feb 20, 2008 at 10:51 PM, cRaig Forrester <treehead at gmail.com> wrote:
[...]
>  I am attempting to reconstitute the Google Bookmark "bookmarklet" as a
>  JavaScript function in my .vimperatorrc file.  I am implementing the
>  following, based on an example rc file I found (the indentation is
>  solely for legibility):
[...]
>  Any suggestions?

I'm not the best person to answer since I don't know JavaScript but I
made for exactly this purpose the following mapping:
map gb :javascript
loadURI("http://www.google.com/bookmarks/mark?op=edit&bkmk="+encodeURIComponent(vimperator.buffer.URL)+"&title="+vimperator.buffer.title)<CR>

Mnemonic for this mapping is obvious :)

Best regards
Andrzej


More information about the Vimperator mailing list