Skip to content

Instantly share code, notes, and snippets.

@proprietary
Last active March 18, 2016 06:54
Show Gist options
  • Save proprietary/bb8920998d79063fbc00 to your computer and use it in GitHub Desktop.
Save proprietary/bb8920998d79063fbc00 to your computer and use it in GitHub Desktop.
cvimrc
set autoupdategist
set nosmoothscroll
set noautofocus
set typelinkhints
let searchlimit = 30
let scrollstep = 80
let barposition = "bottom"
set linkanimations
set scalehints
set nativelinkorder
" 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
" debian package search
let searchengine deb = "https://packages.debian.org/search?searchon=contents&mode=exactfilename&suite=testing&arch=amd64&keywords=%s"
" autocomplete and search
let completionengines = ["google", "google-image", "wikipedia", "wolframalpha", "amazon", "duckduckgo", "deb"]
command a tabnew google
command g open google
command luck tabnew duckduckgo \
command alpha tabnew wolframalpha
command wiki tabnew wikipedia
let defaultengine = "google"
" completions
set nocncpcompletion
set completeonopen
" insert mode; bash command line editing in <input> fields
set insertmappings
imap <C-a> beginningOfLine
imap <C-e> endOfLine
imap <C-u> deleteToBeginning
imap <C-k> deleteToEnd
imap <C-w> deleteWord
imap <C-f> forwardChar
imap <C-b> backwardChar
imap <C-S-f> forwardWord
imap <C-S-b> backwardWord
imap <C-S-a> selectAll
" hide the mouse cursor when scrolling (useful for Linux, which doesn't auto-hide the cursor on keydown)
set autohidecursor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment