Last active
May 9, 2022 02:46
-
-
Save tarao/fe3ad5be8f2d89e284b0748c4f2084f4 to your computer and use it in GitHub Desktop.
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
set noautofocus | |
let hintcharacters = "hjklgfdsayuioptrewq" | |
map ; : | |
map b :buffer<Space> | |
map J scrollPageDown | |
map K scrollPageUp | |
map <C-f> scrollFullPageDown | |
map <C-b> scrollFullPageUp | |
map d :execute gTx<CR> | |
map u lastClosedTab | |
map R reloadTabUncached | |
unmap B | |
imap <C-a> beginningOfLineOrSelectAll | |
imap <C-k> deleteToEnd | |
imap <C-i> editWithVim | |
iunmap <C-p> <C-n> <C-j> | |
copyURIEncoded(node) -> {{ | |
var url = encodeURIComponent(node.href); | |
RUNTIME('copy', { text: url }); | |
Status.setMessage(url, 2); | |
}} | |
map yE createScriptHint(copyURIEncoded) | |
copyTitle(node) -> {{ | |
var text = node.innerText || node.value; | |
RUNTIME('copy', { text: text }); | |
Status.setMessage(text, 2); | |
}} | |
map yT createScriptHint(copyTitle) | |
copyAsMarkdownLink(node) -> {{ | |
var text = node.innerText || node.value; | |
var url = node.href; | |
var link = '[' + text + '](' + url + ')'; | |
RUNTIME('copy', { text: link }); | |
Status.setMessage(link, 2); | |
}} | |
map yM createScriptHint(copyAsMarkdownLink) | |
copyAsHatenaLink(node) -> {{ | |
var text = node.innerText || node.value; | |
var url = node.href; | |
var link = '[' + url + ':title=' + text + ']'; | |
RUNTIME('copy', { text: link }); | |
Status.setMessage(link, 2); | |
}} | |
map yH createScriptHint(copyAsHatenaLink) | |
copyThisPageEncoded() -> {{ | |
var url = encodeURIComponent(location.href); | |
RUNTIME('copy', { text: url }); | |
Status.setMessage(url, 2); | |
}} | |
map ye :call copyThisPageEncoded<CR> | |
copyThisPageTitle() -> {{ | |
var text = document.title || (document.querySelector("title") || {}).innerText || ''; | |
RUNTIME('copy', { text: text }); | |
Status.setMessage(text, 2); | |
}} | |
map yt :call copyThisPageTitle<CR> | |
copyThisPageAsMarkdownLink() -> {{ | |
var text = document.title || (document.querySelector("title") || {}).innerText || ''; | |
var url = location.href; | |
var link = '[' + text + '](' + url + ')'; | |
RUNTIME('copy', { text: link }); | |
Status.setMessage(link, 2); | |
}} | |
map ym :call copyThisPageAsMarkdownLink<CR> | |
copyThisPageAsHatenaLink() -> {{ | |
var text = document.title || (document.querySelector("title") || {}).innerText || ''; | |
var url = location.href; | |
var link = '[' + url + ':title=' + text + ']'; | |
RUNTIME('copy', { text: link }); | |
Status.setMessage(link, 2); | |
}} | |
map yh :call copyThisPageAsHatenaLink<CR> | |
map C :tabnew hb @%<CR> | |
site 'http://b.hatena.ne.jp/*/add.confirm' { | |
set autofocus | |
} | |
let completionengines = [ "google", "ja.google", "en.google", "oald", "oaad", "collins", "en.wikipedia", "ja.wikipedia", "rfc", "javadoc", "metacpan", "hatena-bookmark", "gsearch" ] | |
let searchengine googlemaps = "https://maps.google.co.jp/maps?f=q&hl=ja&q=%s" | |
let searchengine googlecache = [ "javascript:window.open('http://www.google.com/search?q=cache:%s'.replace('%s',encodeURIComponent(location.href.substr(location.protocol.length+2))))", "http://www.google.com/search?q=cache:%s" ] | |
let searchengine wayback = [ "javascript:window.open('http://wayback.archive.org/web/*/%s'.replace('%s',location.href))", "http://wayback.archive.org/web/*/%s" ] | |
let searchengine megalodon = [ "javascript:window.open('http://megalodon.jp/?url=%s'.replace('%s',encodeURIComponent(location.href)))", "http://megalodon.jp/?url=%s" ] | |
let searchengine hatena = [ "http://www.hatena.ne.jp/", "https://tarao.orezdnu.org/smart-bookmark/?engine=vhost&domain=hatena.ne.jp&q=%s" ] | |
let searchengine hatenakeyword = [ "http://d.hatena.ne.jp/keyword/", "http://d.hatena.ne.jp/keyword/%s" ] | |
let searchengine gooej = "http://dictionary.goo.ne.jp/srch/en/%s/m0u/" | |
let searchengine gooje = "http://dictionary.goo.ne.jp/srch/en/%s/m0u/" | |
let searchengine goojn = "http://dictionary.goo.ne.jp/srch/jn/%s/m0u/" | |
let searchengine synonym = "http://www.thesaurus.com/browse/%s" | |
let searchengine gnn = [ "http://orezdnu.org/", "https://tarao.orezdnu.org/smart-bookmark/?engine=vhost&domain=orezdnu.org&q=%s" ] | |
let searchengine edit = [ "javascript:document.body.contentEditable='true';document.designMode='on';void(0)", "javascript:document.body.contentEditable='true';document.designMode='on';'%s',void(0)" ] | |
let searchalias g = "google" | |
let searchalias gen = "en.google" | |
let searchalias gmap = "googlemaps" | |
let searchalias cache = "googlecache" | |
let searchalias takemeback = "wayback" | |
let searchalias fishprint = "megalodon" | |
let searchalias ee = "oald" | |
let searchalias ej = "gooej" | |
let searchalias je = "gooje" | |
let searchalias jn = "goojn" | |
let searchalias wj = "ja.wikipedia" | |
let searchalias w = "en.wikipedia" | |
let searchalias cpan = "metacpan" | |
let searchalias h = "hatena" | |
let searchalias hb = "hatena-bookmark" | |
let searchalias hk = "hatenakeyword" | |
let searchalias gs = "gsearch" |
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
#cVim-command-bar, #cVim-command-bar-mode, #cVim-command-bar-input, #cVim-command-bar-search-results, | |
.cVim-completion-item, .cVim-completion-item .cVim-full, .cVim-completion-item .cVim-left, | |
.cVim-completion-item .cVim-right { | |
font-family: monospace, sans-serif, Arial; | |
font-size: 10pt !important; | |
-webkit-font-smoothing: antialiased !important; | |
} | |
#cVim-command-bar { | |
position: fixed; | |
z-index: 2147483646; | |
background-color: #1b1d1e; | |
color: #bbb; | |
display: none; | |
box-sizing: content-box; | |
box-shadow: 0 3px 3px rgba(0,0,0,0.4); | |
left: 0; | |
width: 100%; | |
height: 20px; | |
} | |
#cVim-command-bar-mode { | |
display: inline-block; | |
vertical-align: middle; | |
box-sizing: border-box; | |
padding-left: 2px; | |
height: 100%; | |
width: 10px; | |
padding-top: 2px; | |
color: #888; | |
} | |
#cVim-command-bar-input { | |
background-color: #1b1d1e; | |
color: #bbb; | |
height: 100%; | |
right: 0; | |
top: 0; | |
width: calc(100% - 10px); | |
position: absolute; | |
} | |
#cVim-command-bar-search-results { | |
position: fixed; | |
width: 100%; | |
overflow: hidden; | |
z-index: 2147483647; | |
left: 0; | |
box-shadow: 0 3px 3px rgba(0,0,0,0.4); | |
background-color: #1c1c1c; | |
} | |
.cVim-completion-item, .cVim-completion-item .cVim-full, .cVim-completion-item .cVim-left, .cVim-completion-item .cVim-right { | |
text-overflow: ellipsis; | |
padding: 1px; | |
display: inline-block; | |
box-sizing: border-box; | |
vertical-align: middle; | |
overflow: hidden; | |
white-space: nowrap; | |
} | |
.cVim-completion-item:nth-child(even) { | |
background-color: #1f1f1f; | |
} | |
.cVim-completion-item { | |
width: 100%; left: 0; | |
color: #bcbcbc; | |
} | |
.cVim-completion-item[active] { | |
width: 100%; left: 0; | |
color: #1b1d1e; | |
background-color: #f1f1f1; | |
} | |
.cVim-completion-item[active] span { | |
color: #1b1d1e; | |
} | |
.cVim-completion-item .cVim-left { | |
color: #fff; | |
width: 37%; | |
} | |
.cVim-completion-item .cVim-right { | |
font-style: italic; | |
color: #888; | |
width: 57%; | |
} | |
#cVim-link-container, .cVim-link-hint, | |
#cVim-hud, #cVim-status-bar { | |
font-family: monospace, sans-serif, Arial; | |
font-size: 10pt !important; | |
-webkit-font-smoothing: antialiased !important; | |
} | |
#cVim-link-container { | |
position: absolute; | |
pointer-events: none; | |
width: 100%; left: 0; | |
height: 100%; top: 0; | |
z-index: 2147483647; | |
} | |
.cVim-link-hint { | |
position: absolute; | |
color: #302505 !important; | |
background-color: #ffd76e !important; | |
border-radius: 2px !important; | |
padding: 2px !important; | |
font-size: 8pt !important; | |
font-weight: 500 !important; | |
text-transform: uppercase !important; | |
border: 1px solid #ad810c; | |
display: inline-block !important; | |
vertical-align: middle !important; | |
text-align: center !important; | |
box-shadow: 2px 2px 1px rgba(0,0,0,0.25) !important; | |
} | |
.cVim-link-hint_match { | |
color: #777; | |
text-transform: uppercase !important; | |
} | |
#cVim-hud { | |
background-color: rgba(28,28,28,0.9); | |
position: fixed !important; | |
transition: right 0.2s ease-out; | |
z-index: 24724289; | |
} | |
#cVim-hud span { | |
padding: 2px; | |
padding-left: 4px; | |
padding-right: 4px; | |
color: #8f8f8f; | |
font-size: 10pt; | |
} | |
#cVim-frames-outline { | |
position: fixed; | |
width: 100%; | |
height: 100%; | |
left: 0; | |
top: 0; | |
right: 0; | |
z-index: 9999999999; | |
box-sizing: border-box; | |
border: 3px solid yellow; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment