Last active
October 21, 2017 14:41
-
-
Save qxj/ca151095ef6076eab7e5734b80588dc0 to your computer and use it in GitHub Desktop.
configuration for cVim (chrome-vim)
This file contains hidden or 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
" .cvimrc | |
" vim: ts=2 sts=2 sw=2 expandtab | |
" let configpath = '~/.cvimrc' | |
" set localconfig | |
" Settings | |
set autoupdategist | |
set hud | |
set smoothscroll | |
set cncpcompletion | |
set noautofocus | |
set noregex | |
set typelinkhints | |
let typelinkhintsdelay = "0" | |
let searchlimit = 40 | |
let scrollstep = 50 | |
let scrollduration = 300 | |
let barposition = "bottom" | |
let zoomfactor = 0.05 | |
" let locale = "uk" | |
" let hintcharacters = "abc123" | |
let searchengine dogpile = "http://www.dogpile.com/search/web?q=%s" | |
let searchengine instapaper = "https://www.instapaper.com/search?q=%s" | |
let searchengine pinboard = "https://www.pinboard.in/search/u:jqian?query=%s" | |
" alias ':g' to ':tabnew google' | |
command g tabnew google | |
let completionengines = ["google", "pinboard", "instapaper", "dogpile"] | |
let searchalias g = "google" | |
" Open all of these in a tab with `gnb` or open one of these with <N>goa where <N> | |
" let qmark a = ["http://www.reddit.com", "http://www.google.com", "http://twitter.com"] | |
let blacklists = ["*://*/*.pdf", "https://mail.google.com/*", "*://mail.google.com/*", "@https://mail.google.com/mail/*"] | |
let mapleader = "\\" | |
" Mappings | |
map <Leader>r reloadTabUncached | |
map <Leader>x :restore<Space> | |
map <C-u> rootFrame | |
map b :buffer<Space> | |
map B :bookmarks<Space> | |
map B :history<Space> | |
map l nextTab | |
map h previousTab | |
map <Space> scrollDown | |
map <S-Space> scrollUp | |
map <C-d> scrollPageDown | |
map <C-e> scrollPageUp | |
map <C-f> scrollFullPageDown | |
map <C-b> scrollFullPageUp | |
" map F createActiveTabbedHint | |
" map f createHint | |
map p openPasteTab | |
map P openPaste | |
map S :open google<Space> | |
map s :tabnew google<Space> | |
map i goToInput | |
map u lastClosedTab | |
map <C-z> toggleCvim | |
iunmap <C-y> | |
imap <C-a> beginningOfLine | |
imap <C-p> backwardLine | |
imap <C-n> forwardLine | |
imap <C-h> deleteChar | |
imap <C-d> deleteForwardChar | |
imap <C-w> deleteWord | |
imap <C-k> deleteToEnd | |
imap <C-o> editWithVim | |
site '*://chat.meatspac.es/*' { | |
call :pintab | |
} | |
site "https://mail.google.com/*" { | |
unmapAll | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment