Skip to content

Instantly share code, notes, and snippets.

@alexanderjeurissen
Last active July 4, 2017 15:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alexanderjeurissen/70411462dffff0dd55db to your computer and use it in GitHub Desktop.
Save alexanderjeurissen/70411462dffff0dd55db to your computer and use it in GitHub Desktop.
Chromium vim extension configuration file
" Position bar at bottom like vimperator
let barposition = "bottom"
" Use <C-d> and <C-u> to scroll like in vimperator
map <C-u> scrollPageUp
map <C-d> scrollPageDown
" Use d for closing tab and u for undo close tab
" like in vimperator
unmap d
unmap u
map d closeTab
map u lastClosedTab
" Copy url with y
map y yankDocumentUrl
" reverse bookmark / buffer binding
map b :buffer<Space>
map B :bookmarks<Space>
" options
set smoothscroll " smoothscroll please
set noautofocus " don't autofocus those input fields..
set cncpcompletion " use <c-n> and <c-p> to go to next er previous completion suggestion
set nohud " disable headsup display
set autoupdategist " auto fetch new version of gist
" buffer settings
" enter buffer completion mode with gb
map gb :buffer<Space>
" search settings
let defaultengine = "duckduckgo"
" completion settings
set completeonopen " show completion when command bar opens
let completionengines = ['duckduckgo', 'wikipedia', 'youtube', 'google-maps']
" Auto pin certain websites
site 'https://keep.google.com/*' {
call :pintab
}
site 'https://inbox.google.com/*' {
call :pintab
}
site 'https://web.whatsapp.com/*' {
call :pintab
}
let blacklists = ["http://vim-adventures.com/*","https://www.typingbolt.com/*","http://www.keybr.com/*","https://app.youneedabudget.com/*","https://inbox.google.com/*","https://keep.google.com/*"]
#cVim-link-container, .cVim-link-hint, #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, #cVim-hud, #cVim-status-bar {
font-family: Helvetica, Helvetica Neue, Neue, sans-serif, monospace, Arial;
font-size: 16pt;
-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 {
border-radius: 2px;
color: #ddd;
padding: 2px !important;
font-size: 11pt !important;
font-weight: 100 !important;
display: inline-block !important;
border: 1px solid #ccc;
vertical-align: middle !important;
text-align: center !important;
box-shadow: 2px 2px 1px rgba(0,0,0,0.25) !important;
position: absolute !important;
transition: opacity 0.2s ease-out, background 0.2s ease-out;
background: linear-gradient(to bottom, #636363 0%,#3f3f3f 39%,#3f3f3f 39%,#000000 100%);
}
.cVim-link-hint_match {
color: #888;
}
#cVim-command-bar {
position: fixed !important;
z-index: 2147483646 !important;
background-color: #1b1d1e !important;
color: #bbb !important;
display: none;
box-sizing: content-box !important;
box-shadow: 0 3px 3px rgba(0,0,0,0.4);
left: 0 !important;
width: 100% !important;
height: 1.2em !important;
font-size: 16pt !important;
}
#cVim-command-bar-mode {
display: inline-block;
vertical-align: middle;
box-sizing: border-box !important;
padding-left: 2px !important;
height: 100% !important;
width: 20px !important;
padding-top: 2px !important;
color: #888 !important;
font-size: 16pt !important;
}
#cVim-command-bar-input {
background-color: #1b1d1e !important;
color: #bbb !important;
height: 100% !important;
right: 0 !important;
top: 0 !important;
width: calc(100% - 10px) !important;
position: absolute !important;
font-size: 16pt !important;
}
#cVim-command-bar-search-results {
position: fixed;
width: 100% !important;
overflow: hidden;
z-index: 2147483647 !important;
left: 0;
box-shadow: 0 3px 3px rgba(0,0,0,0.4);
background-color: rgba(44, 44, 44, 1);
}
.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: #282828;
}
.cVim-completion-item {
width: 100%; left: 0;
color: #fff;
}
.cVim-completion-item .cVim-left {
color: #fff;
width: 37%;
}
.cVim-completion-item .cVim-right {
font-style: italic;
color: #888;
width: 57%;
}
#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;
}
@gijo-varghese
Copy link

what is this file? especially the blacklists? I find my website there

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment