Skip to content

Instantly share code, notes, and snippets.

@ha1t
Created July 30, 2013 09:46
Show Gist options
  • Save ha1t/6111652 to your computer and use it in GitHub Desktop.
Save ha1t/6111652 to your computer and use it in GitHub Desktop.
# aliases
# in this example you can open extensions page by the command ':ext'
# and Chrome's option page by the command ':option'
alias ext TabOpenNew chrome://extensions/
alias option TabOpenNew chrome://settings/browser
alias downloads TabOpenNew chrome://downloads
alias history TabOpenNew chrome://history
alias pop WinOpenNew --pop
## pagecmd offers you page specific key mapping.
# in this example you can use <C-l>, <C-h> for moving between tabs
# on all web pages regardless of your ignored list setting
# because pagecmd has higher priority than ignored URLs.
pagecmd * nmap <C-i> :TabFocusNext
pagecmd * nmap <C-h> :TabFocusPrev
# almost all Vichrome functions don't work properly for pdf contents
# so it's useful to enable default key bindings for pdf file.
pagecmd *.pdf nmap <C-f> <NOP>
pagecmd * nmap gp <NOP>
pagecmd https://kcw.kddi.ne.jp/* nmap j <NOP>
pagecmd https://kcw.kddi.ne.jp/* nmap k <NOP>
pagecmd https://github.com/*/*/pulls* nmap ? <NOP>
pagecmd https://github.com/*/*/pulls* nmap j <NOP>
pagecmd https://github.com/*/*/pulls* nmap k <NOP>
pagecmd https://github.com/*/*/pulls* nmap o <NOP>
pagecmd https://github.com/*/*/issues* nmap ? <NOP>
pagecmd https://github.com/*/*/issues* nmap j <NOP>
pagecmd https://github.com/*/*/issues* nmap k <NOP>
pagecmd https://github.com/*/*/issues* nmap o <NOP>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment