From f32f0c1ded99ead4a588ce4d987da5d00eddf893 Mon Sep 17 00:00:00 2001 From: Ian Adam Naval Date: Fri, 24 Apr 2015 13:14:28 -0400 Subject: [PATCH] Add vimperatorrc --- vimperator/vimperatorrc.dotfile | 63 +++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 vimperator/vimperatorrc.dotfile diff --git a/vimperator/vimperatorrc.dotfile b/vimperator/vimperatorrc.dotfile new file mode 100644 index 0000000..8ef3619 --- /dev/null +++ b/vimperator/vimperatorrc.dotfile @@ -0,0 +1,63 @@ +"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 + +" Hide status bar when fullscreen mode is detected +autocmd Fullscreen .* js updateBottomBar() + +" Re-enable bottom bar during certain commands. +noremap : :js updateBottomBar(false): +noremap o :js updateBottomBar(false)o +noremap O :js updateBottomBar(false)O +noremap t :js updateBottomBar(false)t +noremap T :js updateBottomBar(false)t +noremap / :js updateBottomBar(false)/ +cnoremap :js updateBottomBar() +cnoremap :js updateBottomBar() + +: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 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: