-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.vimperatorrc
executable file
·48 lines (35 loc) · 1.21 KB
/
.vimperatorrc
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.9 (created: 2015/02/15 15:49:05)
source! "C:\\cygwin64\\home\\Ken\\_vimperatorrc.local"
colorscheme indigo-fx3
" don't focus any "input" elements automatically when open pages.
set focuscontent
" Hide status bar when fullscreen mode is detected
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: