Last active
March 21, 2018 16:28
-
-
Save hypnoticOxbow/1c7907646097b31b8947ca34c7cd38b0 to your computer and use it in GitHub Desktop.
cvimrc
This file contains 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
set noautofocus | |
let blacklists = ["https://10fastfingers.com/*","https://docs.google.com/*","http://protobowl.com/*"] | |
" Settings | |
set typelinkhints | |
let searchlimit = 30 | |
let scrollstep = 70 | |
let barposition = "bottom" | |
let locale = "uk" " Current choices are 'jp' and 'uk'. This allows cVim to use sites like google.co.uk | |
" or google.co.jp to search rather than google.com. Support is currently limited. | |
" Let me know if you need a different locale for one of the completion/search engines | |
let hintcharacters = "asdfjklghwerquiopvbcn" | |
let searchengine startpage = "http://www.startpage.com/do/dsearch?query=%s&cat=web&language=english" " If you leave out the '%s' at the end of the URL, | |
" your query will be appended to the link. | |
" Otherwise, your query will replace the '%s'. | |
let searchengine duckduckgo = "https://duckduckgo.com/?q=%s&t=hg&ia=web" | |
" alias ':g' to ':tabnew google' | |
command g tabnew duckduckgo | |
let completionengines = ["duckduckgo", "startpage", "amazon", "imdb"] | |
let searchalias s = "startpage" " Create a shortcut for search engines. | |
" For example, typing ':tabnew g example' | |
" would act the same way as ':tabnew google example' | |
let searchalias d = "duckduckgo" | |
" 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 mapleader = "," | |
" Mappings | |
map <Leader>r reloadTabUncached | |
map a :tabnew startpage | |
map <C-z> toggleCvim | |
map <Leader>x :restore<Space> | |
" You can use <Space>, which is interpreted as a | |
" literal " " character, to enter buffer completion mode | |
map gb :buffer<Space> | |
" Toggle the current HUD display value | |
map <C-h> :set hud!<CR> | |
" Switch between alphabetical hint characters and numeric hints | |
map <C-u> rootFrame | |
map <M-h> previousTab | |
map <C-d> scrollPageDown | |
map <C-e> scrollPageUp | |
iunmap <C-y> | |
imap <C-m> deleteWord | |
" Create a variable that can be used/referenced in the command bar | |
let @@reddit_prog = 'http://www.reddit.com/r/programming' | |
let @@top_all = 'top?sort=top&t=all' | |
let @@top_day = 'top?sort=top&t=day' | |
" Code blocks (see below for more info) | |
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> | |
" Script hints | |
echo(link) -> {{ | |
alert(link.href); | |
}} | |
site "https://mail.google.com/*" { | |
unmapAll | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment