Skip to content

Instantly share code, notes, and snippets.

@no-jochs
Forked from infokiller/cVimrc
Last active January 8, 2019 04:53
Show Gist options
  • Save no-jochs/dde8ba9a7a5d260efb1604005701e983 to your computer and use it in GitHub Desktop.
Save no-jochs/dde8ba9a7a5d260efb1604005701e983 to your computer and use it in GitHub Desktop.
let searchalias s = "stackoverflow"
let searchalias g = "google"
" show the heads-up-display
set hud
" use regexp in find mode
set regexp
" ignore search case in find mode
" set ignorecase
" no fade effect when toggling link hints
set nolinkanimations
" use numbers instead of characters for link hints
set nonumerichints
" dim letter matches in hint characters rather than remove them from the hint
set dimhintcharacters
" use the default chrome://newtab page instead of a blank page
set nodefaultnewtabpage
" <C-n> and <C-p> to cycle through completion results (requires you to
" set the nextCompletionResult keybinding in the chrome://extensions page (bottom right)
set nocncpcompletion
" case-insensitive find mode searches except when input contains a capital letter
set smartcase
" auto-highlighting find mode matches when input length is greater thant two
set incsearch
" (numerichints required) type text in the link to narrow down numeric hints
set typelinkhints
" hide the mouse cursor when scrolling (useful for Linux, which doesn't auto-hide the cursor on keydown)
set autohidecursor
" allows websites to automatically focus an input box when they are first loaded
set noautofocus
" use insert mappings to navigate the cursor in text boxes (see bindings below)
set insertmappings
" if a GitHub Gist is used to sync settings, pull updates every hour (and when Chrome restarts)
set autoupdategist
" Open new tabs like Chrome does rather than next to the currently opened tab
set nonativelinkorder
" disable cVim on the sites matching one of the patterns
let blacklists = ["https://inbox.google.com/*", "chrome://*"]
" number of results displayed in the command bar
let searchlimit = 30
" time to wait for a <Leader> mapping in (millis)
let timeoutlen = 1000
" milliseconds to wait before taking input after opening a link hint with
" typelinkhints and numerichints enabled integer
let typelinkhintsdelay = 50
" use smooth scrolling
set smoothscroll
" integer the duration of smooth scrolling
let scrollduration = 2000
" number of pixels scrolled when using scrollUp and scrollDown
let scrollstep = 125
" full page scroll percent
let fullpagescrollpercent = 85
" " integer the step size when zooming the page in/out 0.
" let zoomfactor = 0.1
" use only the specified search engines
let completionengines = []
" The default <Leader> key
let mapleader = " "
" the highlight color in find mode
let highlight = "#ffff00"
" set the default search engine
let defaultengine = "google"
" set the locale of the site being completed/searched on (see example configuration below)
let locale = ""
" the highlight color for the current find match
let activehighlight = "#ff9632"
" the directory to replace ~ when using the file command
let homedirectory = ""
" add a persistent QuickMark (e.g. let qmark a = ["http://google.com", "http://reddit.com"])
let qmark a = ["http://google.com", "http://reddit.com"]
" the pattern looked for when navigating a page's back button
let previousmatchpattern = "((?!last)(prev(ious)?|back|«|less|<|‹|<|←|«|≪|<<)+)"
" the pattern looked for when navigation a page's next button
let nextmatchpattern = "((?!first)(next|more|>|›|»|forward|>|→|»|≫|>>)+)"
" set the default characters to be used in link hint mode
let hintcharacters = "asdfgqwertzxcvb"
" command bar position
let barposition = "top"
imap <C-k> deleteToEnd
unmap h
map j scrollLeft
map ; scrollRight
map k scrollDown
map l scrollUp
unmap K
unmap L
unmap J
unmap H
" using alt instead of shift like I used to in Vimium, since ":" (shift+;) is now mapped to command input.
map <A-j> previousTab
map <A-;> nextTab
map <A-k> goBack
map <A-l> goForward
site '*://mail.google.com/*' {
unmapAll
iunmapAll
map <A-j> previousTab
map <A-;> nextTab
map <A-k> goBack
map <A-l> goForward
map < moveTabLeft
map > moveTabLeft
map : openCommandBar
}
site '*://www.google.com/calendar/*' {
unmapAll
map <A-j> previousTab
map <A-;> nextTab
map <A-k> goBack
map <A-l> goForward
map < moveTabLeft
map > moveTabLeft
map : openCommandBar
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment