Mercurial > dotfiles
diff vimperatorrc @ 183:8b37877d309f
Merged changes.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Sun, 20 Jul 2014 19:36:55 -0700 |
parents | 095fb39b2096 |
children |
line wrap: on
line diff
--- a/vimperatorrc Sun Jun 01 15:34:00 2014 -0700 +++ b/vimperatorrc Sun Jul 20 19:36:55 2014 -0700 @@ -43,11 +43,28 @@ nnoremap <leader>b :downloads<cr> " Super minimal UI -set toolbars=noaddons,nobookmarks,nomenu,nonavigation,notabs +"set toolbars=noaddons,nobookmarks,nomenu,nonavigation,notabs " Websites with useful keyboard shortcuts already ignorekeys add -except=:,J,K,b fastmail.fm ignorekeys add -except=:,J,K,b feedly.com ignorekeys add -except=:,J,K,b mnmlrdr.com +ignorekeys add -except=:,J,K,b newsblur.com + +" The new Firefox fucked up vimperator's ability to hide +" things. Let's do it ourselves for now. +map <silent> <F2> :js toggle_ui()<CR> + +:js << EOF +function toggle_ui() { + var nb = document.getElementById('nav-bar'); + nb.style.visibility = (nb.style.visibility == '') ? 'collapse' : ''; + nb.style.overflow = (nb.style.height == '') ? '' : 'hidden'; + + var tb = document.getElementById('TabsToolbar'); + tb.style.visibility = (tb.style.visibility == '') ? 'hidden' : ''; + } +toggle_ui(); +EOF " vim: ft=vim