Last active
August 29, 2015 14:17
-
-
Save murarisumit/8377e53e975b35d8f7b2 to your computer and use it in GitHub Desktop.
My vimperatorrc file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" Map d to nothing, because I accidently press 'd' at-times. | |
nnoremap d <nop> | |
" Press 'q' to delete current tab | |
noremap q :bdelete<CR> | |
" Move tab left/right(Sometimes I do stupid things) | |
noremap J :tabmove -1<CR> | |
noremap K :tabmove +1<CR> | |
" Move back and forward in tab | |
noremap H :back<CR> | |
noremap L :forward<CR> | |
noremap j 3j | |
noremap k 3k | |
" Press 'm' to go to previous tab | |
noremap m :tabprevious<CR> | |
" Press ',' to go to next tab | |
noremap , :tabnext<CR> | |
"==============Mappings===================== | |
" Make bar yellow when focused. | |
" From: http://www.reddit.com/r/linux/comments/99d55/i_could_use_a_little_vimperator_help_also/ | |
javascript <<EOF | |
(function() { | |
var inputElement = document.getElementById('liberator-commandline-command'); | |
function swapBGColor(event) { | |
inputElement.style.backgroundColor = event.type == "focus" ? "yellow" : ""; | |
} | |
inputElement.addEventListener('focus', swapBGColor, false); | |
inputElement.addEventListener('blur', swapBGColor, false); | |
})(); | |
EOF | |
" Load configuration file into current browser, useful for updating after editing this file. | |
command! sourcerc :source ~/.vimperatorrc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment