Last active
November 14, 2018 05:07
-
-
Save creichert/31914a6dc517b22f4a21777c463ab4ff to your computer and use it in GitHub Desktop.
cvim config
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
" minimal cvim - see the cvim.css file for customizing theme | |
" | |
" https://gist.github.com/creichert/31914a6dc517b22f4a21777c463ab4ff | |
set autoupdategist | |
let hintcharacters = 'asdfghjklcvbn' | |
let barposition = "bottom" | |
let searchalias s = "stackoverflow" | |
let searchalias g = "google" | |
let mapleader = "." | |
let searchlimit = 5 | |
let scrollstep = 100 | |
set smartcase | |
set noautofocus | |
set autohidecursor | |
set hud | |
set regexp | |
set ignorecase | |
set nonumerichints | |
set nosmoothscroll | |
map d closeTab | |
map u lastClosedTab | |
" Code blocks (see below for more info) | |
getIP() -> {{ | |
httpRequest({url: 'http://api.ipify.org/?format=json', json: true}, | |
function(res) { Status.setMessage('IP: ' + res.ip); }); | |
}} | |
" Displays your public IP address in the status bar | |
map ci :call getIP<CR> | |
" Code blocks (see below for more info) | |
orgCapture() -> {{ | |
window.open( | |
'org-protocol://capture://t' | |
+ '/' + encodeURIComponent(location.href) | |
+ '/' + encodeURIComponent(document.title) | |
+ '/' + encodeURIComponent(window.getSelection()) | |
); | |
"httpRequest({url: 'org-protocol://capture://t' | |
" + '/' + encodeURIComponent(location.href) | |
" + '/' + encodeURIComponent(document.title) | |
" + '/' + encodeURIComponent(window.getSelection()), | |
" json: true}, | |
" function(res) { Status.setMessage('Captured: ' + res.ip); }); | |
}} | |
" Displays your public IP address in the status bar | |
map C :call orgCapture <CR> | |
copyCurrentTabTitle -> {{ | |
Status.setMessage(document.title,3); | |
Clipboard.copy(document.title); | |
}} | |
map yt :call copyCurrentTabTitle<CR> |
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-hud, #cVim-hud span, | |
.cVim-completion-item, .cVim-completion-item .cVim-full, .cVim-completion-item .cVim-left, | |
.cVim-link-hint, .cVim-hud, .cVim-completion-item, | |
.cVim-completion-item .cVim-right { | |
font-family: monofur !important; | |
font-size: 10pt !important; | |
-webkit-font-smoothing: antialiased !important; | |
background-color: #3b3228 !important; | |
color: #d0c8c6 !important; | |
} | |
#cVim-command-bar-input { | |
font-wight: bold !important; | |
background-color: #3b3228 !important; | |
color: #d0c8c6 !important; | |
} | |
#cVim-command-bar-mode { | |
box-sizing: none; | |
padding-left: 0px; | |
background-color: #3b3228 !important; | |
color: #d0c8c6 !important; | |
} | |
#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; | |
} | |
#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: Helvetica, Helvetica Neue, Neue, sans-serif, monospace, 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