Is there a way to hide or maybe just autohide the status bar in vimperator?
Asked
Active
Viewed 3,593 times
5
-
An autohide request: http://stackoverflow.com/questions/21053262/vimperator-autohide-statusline – Ciro Santilli OurBigBook.com Jan 29 '15 at 12:18
1 Answers
8
Based on a blog post:
"javascript to hide statusbar
noremap <silent> <F8> :js toggle_bottombar()<CR>
noremap : :js toggle_bottombar('on')<CR>:
noremap o :js toggle_bottombar('on')<CR>o
noremap O :js toggle_bottombar('on')<CR>O
noremap t :js toggle_bottombar('on')<CR>t
noremap T :js toggle_bottombar('on')<CR>T
noremap / :js toggle_bottombar('on')<CR>/
cnoremap <CR> <CR>:js toggle_bottombar('off')<CR>
cnoremap <Esc> <Esc>:js toggle_bottombar('off')<CR>
:js << EOF
function toggle_bottombar(p) {
var bb = document.getElementById('liberator-bottombar');
if (!bb)
return;
if (p == 'on'){
bb.style.height = '';
bb.style.overflow = '';
return;
}
if (p == 'off'){
bb.style.height = '0px';
bb.style.overflow = 'hidden';
return;
}
bb.style.height = (bb.style.height == '') ? '0px' : '';
bb.style.overflow = (bb.style.height == '') ? '' : 'hidden';
}
toggle_bottombar();
EOF
Stefan van den Akker
- 220
- 2
- 7
boriselec
- 196
- 2
-
1
-
I've added `noremap f :js toggle_bottombar('on')
f` and `noremap F :js toggle_bottombar('on') – G Mawr Aug 10 '15 at 22:59F`.