Created
November 16, 2017 16:26
-
-
Save nkoehring/6e05c3953c0eeff5608018e92e10c6bc to your computer and use it in GitHub Desktop.
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
" Settings | |
set nosmoothscroll | |
set noautofocus " The opposite of autofocus; this setting stops | |
" sites from focusing on an input box when they load | |
set typelinkhints | |
let searchlimit = 30 | |
let scrollstep = 70 | |
let barposition = "bottom" | |
let hintchars = hjklasdfgyuiopqwertnmzxcvb | |
set scalehints | |
set sortlinkhints | |
set showtabindices | |
let searchengine duckduckgo = ["https://duckduckgo.com", "https://duckduckgo.com/?q=%s&t=ffab&ia=web"] | |
let searchalias ddg = "duckduckgo" | |
" alias ':g' to ':tabnew google' | |
command g tabnew google | |
command ddg tabnew duckduckgo | |
let completionengines = ["duckduckgo", "wikipedia", "imdb", "amazon"] | |
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' | |
" 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"] | |
" disables cVim on these sites | |
" let blacklists = ["https://mail.google.com/*", "*://mail.google.com/*", "@https://mail.google.com/mail/*"] | |
" blacklists prefixed by '@' act as a whitelist | |
let mapleader = "," | |
" Mappings | |
map <Leader>r reloadTabUncached | |
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> | |
" 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' | |
"" TA binding opens 'http://www.reddit.com/r/programming/top?sort=top&t=all' in a new tab | |
"map TA :tabnew @@reddit_prog/@@top_all<CR> | |
"map TD :tabnew @@reddit_prog/@@top_day<CR> | |
" Use paste buffer in mappings | |
map P :tabnew @"<CR> | |
" 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); | |
"}} | |
"map <C-f> createScriptHint(echo) | |
let configpath = '~/.cvimrc' | |
set localconfig " Update settings via a local file (and the `:source` command) rather | |
" than the default options page in chrome | |
" As long as localconfig is set in the .cvimrc file. cVim will continue to read | |
" settings from there | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment