blob: 872f044a1a23c0cfcd5e6039d7d76d32c0feeca9 (
plain)
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
45
46
47
48
|
"3.8.3 (created: 2014/11/09 13:19:01)
highlight Hint font-family: monospace; font-size: 12px; font-weight: bold; text-transform: uppercase; color: white; background-color: red; border-color: ButtonShadow; border-width: 0px; border-style: solid; padding: 0px 1px 0px 1px;
highlight HintElem ''
set hintchars=asdfjkluiowerqp
source! /home/tom/.vimperatorrc.local
set gui=nonavigation
" Hide status bar when fullscreen mode is detected as found in:
" https://github.com/vimperator/vimperator-labs/issues/26#issuecomment-73982996
autocmd Fullscreen .* js updateBottomBar()
" Re-enable bottom bar during certain commands.
noremap : :js updateBottomBar(false)<CR>:
noremap o :js updateBottomBar(false)<CR>o
noremap O :js updateBottomBar(false)<CR>O
noremap t :js updateBottomBar(false)<CR>t
noremap T :js updateBottomBar(false)<CR>t
noremap / :js updateBottomBar(false)<CR>/
cnoremap <CR> <CR>:js updateBottomBar()<CR>
cnoremap <Esc> <Esc>:js updateBottomBar()<CR>
:js << EOF
let hlContentSepValue = highlight.get('ContentSeparator').value
function updateBottomBar(close = window.fullScreen) {
let bb = document.getElementById('liberator-bottombar')
if (! bb) return
if (close) {
bb.style.height = '0px'
bb.style.overflow = 'hidden'
liberator.execute('highlight ContentSeparator display: none;')
}
else {
bb.style.height = ''
bb.style.overflow = ''
liberator.execute('highlight ContentSeparator ' + hlContentSepValue)
}
}
updateBottomBar()
EOF
" vim: set ft=vimperator:
|