Curtis Free's Blog

About Blog Config DB Projects Scripts Wishlist Husband, father, geek, progressive.

Easy Delicious bookmarking with Vimperator

If you use Vimperator, add the following to your ~/.vimperatorrc to enable the addition of a Delicious bookmark for the current page simply by pressing D:

"" Bookmark on Delicious
""" JS derived from
""" For reference, see
map D :js add_to_delicious()<CR>
:js <<EOJS
  add_to_delicious = function() {
    var delicious_url = ''
                      + '?url=' + encodeURIComponent(window.getBrowser().currentURI.spec)
                      + '&title=' + encodeURIComponent(window.getBrowser().contentTitle)
                      + '&v=5&noui=1&jump=doclose'
                      + '&share=no'; // default share setting, 'deliciousuiv5', 'width=550,height=550');