shallowbit
6/13/2016 - 8:52 PM

cvimrc

cvimrc

set autoupdategist
map ^n nextSearchResult
map ^N previousSearchResult
map n :execute ^nzz<CR>
map N :execute ^Nzz<CR>
set cncpcompletion
let nextmatchpattern = "((?!first)(next|older|more|>|›|»|forward)+)"
let previousmatchpattern = "((?!last)(prev(ious)?|newer|back|«|less|<|‹)+)"
site '*://*.newegg.com/*' {
   call :pintab
   let nextmatchpattern = "((?!first)(next|older|forward)+)"
   let previousmatchpattern = "((?!last)(prev(ious)?|newer|back|less)+)"
}


set smoothscroll
set noautofocus " The opposite of autofocus; this setting stops sites from focusing on an input box when they load
set typelinkhints
let searchlimit = 40
let scrollstep = 90
let scrollduration = 1200
let barposition = "bottom"
" let hintcharacters = "abc123"
command g tabnew google
let searchengine newegg = "http://www.newegg.com/Product/ProductList.aspx?Description=%s&Submit=ENE&Order=PRICE&PageSize=60"
let completionengines = ["google", "amazon", "imdb", "wikipedia", "youtube" ]
let searchalias g = "google"
let searchalias w = "wikipedia"
let searchalias a = "amazon"
let searchalias y = "youtube"
let searchalias i = "imdb"
" 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 = ["https://mail.google.com/*","*://mail.google.com/*","@https://mail.google.com/mail/*"]
" blacklists prefixed by '@' act as a whitelist
let mapleader = ","
map <Leader>r reloadTabUncached
map <Leader>x :restore<Space>
map gb :buffer<Space>
map <C-h> :set hud!<CR>
" Switch between alphabetical hint characters and numeric hints
map <C-i> :set numerichints!<CR>
map <C-u> rootFrame
getIP() -> {{
httpRequest({url: 'http://api.ipify.org/?format=json', json: true},
            function(res) { Status.setMessage('IP: ' + res.ip); });
}}
" Displays your public IP address in the status bar
map ci :call getIP<CR>
"kodiUP() -> {{
"httpRequest({url: 'http://192.168.2.120:8080/jsonrpc', json: true},
"            function(res) { Status.setMessage('RES: ' + res.toString()); });
"}}
"map <Leader>u :call kodiUP<CR>
" link urls in status 
map <C-e> createScriptHint(echo)
echo(link) -> {{
  Status.setMessage(link.href);
}}
" Pin sites on applepi box
site '*://192.168.2.12*/*' {
   call :pintab
}