Created
May 21, 2014 09:52
-
-
Save woowee/502b1bdebd6c7b4e44a5 to your computer and use it in GitHub Desktop.
Key Mapping / Alias Setting on Vichrome
This file contains 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
### Sample Settings | |
# 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 | |
# mappings for opening your favorite web page | |
nmap <Space>tw :TabOpenNew http://www.twitter.com | |
nmap <Space>gr :TabOpenNew http://www.google.com/reader | |
nmap <Space>m :TabOpenNew https://mail.google.com/mail/#inbox | |
# F for continuous f-Mode | |
# this is recomended setting but commented out by default. | |
# if you want to use this setting, use the following | |
#nmap F :GoFMode --newtab --continuous | |
# you can use <DISCARD> to discard the key so that chrome's default | |
# action isn't triggered. | |
#nmap <BS> <DISCARD> | |
# if you want to change the key used to escape EmergencyMode mode, | |
# use emap like the following | |
#emap <ESC> :Escape | |
## 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-l> :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> | |
# if you want to use twitter web's key binding, write settings like below | |
#pagecmd http*://twitter.com/* nmap f <NOP> | |
#pagecmd http*://twitter.com/* nmap r <NOP> | |
# | |
# mymapping | |
# | |
# for us keyboard | |
nmap ; :GoCommandMode | |
nmap o s | |
nmap O S | |
# pinboard | |
nmap p :Open javascript:q%3Dlocation.href%3Bif(document.getSelection)%7Bd%3Ddocument.getSelection()%3B%7Delse%7Bd%3D%27%27%3B%7D%3Bp%3Ddocument.title%3Bvoid(open(%27https://pinboard.in/add%3Fshowtags%3Dyes%26url%3D%27%2BencodeURIComponent(q)%2B%27%26description%3D%27%2BencodeURIComponent(d)%2B%27%26title%3D%27%2BencodeURIComponent(p),%27Pinboard%27,%27toolbar%3Dno,scrollbars%3Dyes,width%3D750,height%3D700%27))%3B |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment