Created
September 23, 2018 01:58
-
-
Save hirano00o/a8ff63c6032a4793ab6682fc4aae3d07 to your computer and use it in GitHub Desktop.
cvim
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 locale="jp" | |
set numerichints | |
set typelinkhints | |
let searchlimit = 15 | |
let scrollstep = 70 | |
let fullpagescrollpercent = 100 | |
let barposition = "bottom" | |
let mapleader = "," | |
map i goToInput | |
map <C-r> reloadTabUncached | |
" タブ移動、タブ開閉 | |
map h previousTab | |
map l nextTab | |
map d closeTab | |
map D :execute dh<CR> | |
map u lastClosedTab | |
map J moveTabRight | |
map K moveTabLeft | |
" バッファ表示 | |
map b :buffer<Space> | |
map B :bookmarks<Space> | |
" スクロール | |
map <C-d> scrollPageDown | |
map <C-f> scrollFullPageDown | |
map <C-u> scrollPageUp | |
map <C-b> scrollFullPageUp | |
" URLヤンク | |
yankURL() -> {{ | |
RUNTIME('getRootUrl', function(url) { | |
Clipboard.copy(url); | |
Status.setMessage("yank url is " + url, 2); | |
}); | |
}} | |
map y :call yankURL<CR> | |
" Markdown形式でヤンク | |
yankURLMarkdown -> {{ | |
var title = window.document.title.replace(/(<|>)/g, '\\$1') | |
var link = `[${title}](${window.location.href})` | |
Clipboard.copy(link); | |
Status.setMessage(link, 2); | |
}} | |
map ym :call yankURLMarkdown<CR> | |
site '*://feedly.com/*' { | |
unmap j | |
unmap k | |
unmap v | |
unmap J | |
unmap K | |
unmap ? | |
unmap r | |
} |
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: Helvetica, Helvetica Neue, Neue, sans-serif, monospace, 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; | |
opacity: 0.8; | |
} | |
#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; | |
opacity: 0.8; | |
} | |
.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: hsla(50, 86%, 87%, 1); | |
text-shadow: 0 0 1px #eecb1b; | |
width: 37%; | |
} | |
.cVim-completion-item .cVim-right { | |
font-style: italic; | |
color: #888; | |
width: 57%; | |
} | |
.cVim-completion-item .cVim-full { | |
margin-left: 8px; | |
color: hsla(50, 86%, 87%, 1); | |
text-shadow: 0 0 1px #eecb1b; | |
} | |
#cVim-link-container, .cVim-link-hint, | |
#cVim-hud, #cVim-status-bar { | |
font-family: Helvetica, Helvetica Neue, Neue, sans-serif, monospace, Arial; | |
font-size: 10pt !important; | |
-webkit-font-smoothing: antialiased !important; | |
} | |
#cVim-status-bar { | |
background-color: #1b1d1e !important; | |
color: #fff !important; | |
text-shadow: 0 0 15px #34df42, 0 0 20px #34df42, 0 0 25px #34df42 !important; | |
font-size: 18px !important; | |
line-height: 38px !important; | |
height: 40px !important; | |
padding-left: 10px; | |
} | |
#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: #dddddd !important; | |
background-color: rgba(20,20,20,0.7) !important; | |
border-radius: 2px !important; | |
padding: 2px !important; | |
font-size: 10pt !important; | |
font-weight: bold !important; | |
text-transform: uppercase !important; | |
border: 1px solid #000; | |
display: inline-block !important; | |
vertical-align: middle !important; | |
text-align: center !important; | |
box-shadow: 4px 4px 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