66 lines
2.2 KiB
Plaintext
66 lines
2.2 KiB
Plaintext
"3.9 (created: 2015/02/15 15:49:05)
|
|
|
|
source! /home/ian/.vimperatorrc.local
|
|
|
|
set editor="urxvt -e vim"
|
|
set gui=nonavigation
|
|
set hc=hjklasdfgyuiopqwertnmzxcvb
|
|
|
|
nnoremap j 3j
|
|
nnoremap k 3k
|
|
nnoremap h 3h
|
|
nnoremap l 3l
|
|
|
|
nnoremap J gt
|
|
nnoremap K gT
|
|
|
|
noremap m :set gui=invnavigation<CR>
|
|
|
|
" 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
|
|
|
|
hi Normal color: #f8f8f2; background: #252525
|
|
hi CompItem[selected] background: #800
|
|
hi CmdLine background: #252525; color: #f8f8f2; font-family: "Meslo LG S DZ"; font-size: 12px;
|
|
hi StatusLine background: #252525; color: #f8f8f2; font-family: "Meslo LG S DZ"; border-color: #252525; font-size: 12px
|
|
hi ContentSeparator border-top: none; display: -moz-box;
|
|
hi ModeMsg color: #f8f8f2; background: #252525; font-family: "Meslo LG S DZ"; font-size: 12px;
|
|
hi MoreMsg color: #f8f8f2; background: #252525; font-family: "Meslo LG S DZ"; font-size: 12px;
|
|
hi InfoMsg color: #f8f8f2; background: #252525; font-family: "Meslo LG S DZ"; font-size: 12px;
|
|
hi ErrorMsg color: #f8f8f2; background: #252525; font-family: "Meslo LG S DZ"; font-size: 12px;
|
|
hi Message color: #f8f8f2; background: #252525; font-family: "Meslo LG S DZ"; font-size: 12px; min-width: 100%;
|
|
hi PromptText color: #f8f8f2; font-family: "Meslo LG S DZ"; font-size: 12px;
|
|
|
|
" vim: set ft=vimperator:
|