Created
June 18, 2015 13:37
-
-
Save dfeng/e9fa42332f4c291349fc to your computer and use it in GitHub Desktop.
Vimperator Settings
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
| "===[ Settings ]======================================================== | |
| set complete=sl | |
| set wildmode='list:full' | |
| set noerrorbells | |
| set! javascript.options.jit.chrome=true | |
| set hintchars=theuigjkdsal | |
| set defsearch=google | |
| set gui=none | |
| set gui=tabs | |
| set urlseparator=; | |
| "===[ Auto commands ]=================================================== | |
| " Pass through all keys (like CTRL-Z) on Gmail and Google Reader: | |
| autocmd LocationChange .* :js modes.passAllKeys = /docs\.google\.com\/spreadsheets|docs\.google\.com\/a\/yale\.edu\/document/.test(buffer.URL) | |
| "===[ Custom commands ]================================================= | |
| " Load configuration file into current browser, useful for updating after editing this file. | |
| command! sourcerc :source ~/.vimperatorrc | |
| nnoremap -urls ^\\.pdf$ i :<C-u>pdfjs index<Space> | |
| nnoremap -urls ^\\.pdf$ z :<C-u>pdfjs zoom<Space> | |
| :command! -nargs=+ lazy autocmd VimperatorEnter .* <args> | |
| :lazy fmaps -u='mail\.google\.com/mail' c / j k u e x s r a I # [ ] ? gi gs gt gd ga gc n p q,` Q,~ | |
| ":lazy fmaps -events vkeydown -u='youtube\.com' <Left> <Right> | |
| :lazy fmaps -events vkeydown -u='www\.google\.com/calendar' j k t m w | |
| :command reader execute "open about:reader?url=" + content.location.href | |
| "===[ Colors ]======================================================== | |
| color molokai | |
| hi Hint font-family: monospace; font-size: 15px; font-weight: normal; color: lightyellow; background-color: black; border-color: ButtonShadow; border-width: 0px; border-style: solid; padding: 0px 5px 0px 5px; text-transform: uppercase; | |
| hi HintElem background-color: pink; color: black; | |
| hi HintActive background-color: hotpink; color: white; | |
| " hi -append Hint background-color: rgba(28, 28, 28, 0.7); border: 1px solid #1c1c1c; -moz-border-radius: 4px; -moz-box-shadow: 0px 0px 1px black; text-shadow: 1px 1px 2px black; | |
| " hi -append HintElem text-decoration: none; -moz-border-radius: 4px; -moz-box-shadow: 0 0 2px #0c0c0c; | |
| " hi -append HintActive text-decoration: none; -moz-border-radius: 4px; -moz-box-shadow: 0 0 2px #0c0c0c; | |
| "===[ CSS ]======================================================== | |
| "===[ Mappings ]======================================================== | |
| noremap h :tabprevious<CR> | |
| noremap l :tabnext<CR> | |
| "noremap w :bdelete<CR> | |
| noremap w :quit<CR> | |
| noremap , H | |
| noremap . L | |
| noremap j 5j | |
| noremap k 5k | |
| noremap d :tabduplicate<CR> | |
| noremap I <Nop> | |
| noremap q <Nop> | |
| noremap m <Nop> | |
| noremap ` <C-6> | |
| "noremap H <C-S-n> | |
| "noremap L <C-S-p> | |
| "noremap q :tabgroups switch | |
| noremap <C-r> :reader <CR> | |
| noremap q :set gui=tabs<CR> | |
| noremap e :set gui=notabs<CR> | |
| "===[ fin ]============================================================= |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment