Skip to content

Instantly share code, notes, and snippets.

@michaeljklein
Created June 13, 2016 18:34
Show Gist options
  • Save michaeljklein/d7c7dbdeca9d59a5287256c04f754746 to your computer and use it in GitHub Desktop.
Save michaeljklein/d7c7dbdeca9d59a5287256c04f754746 to your computer and use it in GitHub Desktop.
let configpath = '/Users/michaelklein/.cvimrc'
let homedirectory = '/Users/michaelklein'
set localconfig
let vimcommand = 'urxvt -e vim'
imap <C-o> editWithVim
set smoothscroll
" set noautofocus
set cncpcompletion
set nohud
set nodimhintcharacters
set typelinkhints
let mapleader = ','
let zoomfactor = 0.05
let scrollduration = 250
let searchlimit = 25
let searchengine hoogle = "https://www.haskell.org/hoogle/?hoogle=%s"
" alias ':g' to ':tabnew google'
command g tabnew google
command h tabnew hoogle
let searchalias g = "google" " Create a shortcut for search engines.
" For example, typing ':tabnew g example'
" would act the same way as ':tabnew google example'
let searchalias h = "hoogle"
let completionengines = ['hoogle', 'google', 'wikipedia', 'imdb',
\ 'amazon', 'wolframalpha']
" let qmark a = [ 'http://www.reddit.com/r/learnjavascript/new',
" \ 'http://www.reddit.com/r/learnpython/new/',
" \ 'http://www.reddit.com/r/learnprogramming/new']
let searchalias i = 'imdb'
map af createActiveTabbedHint
map $ lastTab
map 0 firstTab
map <Space> l
map <S-Space> h
map gS :viewsource&<CR>
map xx closeTab
map qq xx
map Q closeTab
map gs fullImageHint
map gq :restore<Space>
map a<Space> z<Enter>
map <C-e> z<Enter>
map <C-k> nextTab
map <C-j> previousTab
map cn :execute nzz<CR>
map cN :execute Nzz<CR>
map <C-d> :file ~/
map m* setMark
map <C-s> openLastHint
map <C-g> :set smoothscroll!<CR>
map <C-h> :nohl<CR>
map cc :set hud!<CR>
map aa :tabopen g<Space>
map ga :settings<CR>
map g0 scrollToLeft
map I yankHighlight
map g$ scrollToRight
imap <C-y> selectAll
imap <C-a> <C-i>
imap <C-l> forwardWord
imap <C-h> backwardWord
map <BS> <Nop>
map <Leader>s :source<CR>
map <Leader>n :set numerichints!<CR>
map ci :call getIP<CR>
map ? openLinkSearchBar
" fixChromiumWikiBug -> {{
" [].slice.call(document.querySelectorAll('*[accesskey]')).forEach(function(e) {
" e.removeAttribute('accesskey');
" });
" }}
" site '*://*/*' {
" call fixChromiumWikiBug
" }
getIP -> {{
httpRequest({url: 'http://www.telize.com/geoip', json: true}, function(res) {
Status.setMessage(res.ip + ' - ' + res.isp);
});
}}
site '*://*.netflix.com/watch*' {
unmap <Space>
unmap f
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment