forked from bomgar/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvimperatorrc
More file actions
44 lines (39 loc) · 1.16 KB
/
Copy pathvimperatorrc
File metadata and controls
44 lines (39 loc) · 1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
"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
var hl = highlight.get('ContentSeparator');
var cs_current = hl.value;
function toggle_bottombar(p) {
var bb = document.getElementById('liberator-bottombar');
if (!bb)
return;
if (p == 'on'){
show_bottombar(bb);
return;
}
if (p == 'off'){
hide_bottombar(bb)
return;
}
bb.style.height == '' ? hide_bottombar(bb) : show_bottombar(bb);
}
function show_bottombar(bb) {
bb.style.height = '';
bb.style.overflow = '';
liberator.execute('highlight ContentSeparator ' + cs_current);
}
function hide_bottombar(bb) {
bb.style.height = '0px';
bb.style.overflow = 'hidden';
liberator.execute('highlight ContentSeparator display: none;');
}
toggle_bottombar();
EOF