You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
946 B
Plaintext

loadplugins '\.(js|penta)$'
group user
set editor='/usr/local/bin/mvim -f +<line> +"sil! call cursor(0, <column>)" <file>'
" Grooveshark stuff. Works only if it is in the first tab
map gsn :js if((gs = gBrowser.tabs[0].linkedBrowser.contentWindow.wrappedJSObject.Grooveshark) != undefined) gs.next();<CR>
map gsp :js if((gs = gBrowser.tabs[0].linkedBrowser.contentWindow.wrappedJSObject.Grooveshark) != undefined) gs.previous();<CR>
map gs<space> :js if((gs = gBrowser.tabs[0].linkedBrowser.contentWindow.wrappedJSObject.Grooveshark) != undefined) gs.togglePlayPause();<CR>
cmap <C-c> <esc>
" Save to pocket
command! pocket -description "Save to Pocket" open javascript:(function(){ISRIL_H='ff69';PKT_D='getpocket.com';ISRIL_SCRIPT=document.createElement('SCRIPT');ISRIL_SCRIPT.type='text/javascript';ISRIL_SCRIPT.src='http://'+PKT_D+'/b/r.js';document.getElementsByTagName('head')[0].appendChild(ISRIL_SCRIPT)})();
" vim: set ft=pentadactyl: