Last active
August 23, 2019 13:12
-
-
Save djsnipa1/709dfcd167a3dbb1e1e77315d63975aa to your computer and use it in GitHub Desktop.
cVimrc configuration file
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
let searchlimit="50" | |
set cncpcompletion " (requires you to set the nextCompletionResult keybinding in the chrome://extensions page (bottom right)) | |
" Automatically show a list of command completions when the command bar is opened | |
set completeonopen | |
" put tab indicies in title | |
" set showtabindices | |
" animates follow link boxes | |
set linkanimations | |
" scale animates follow link boxes | |
set scalehints | |
" if a GitHub Gist is used to sync settings, pull updates every hour (and when Chrome restarts) | |
set autoupdategist | |
set noautofocus " The opposite of autofocus; this setting stops | |
" sites from focusing on an input box when they load | |
" 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 blacklists = ["https://mail.google.com/*", "*://mail.google.com/*", "*://voice.google.com/*", "@https://mail.google.com/mail/*", "*://remotedesktop.google.com/*"] | |
" blacklists prefixed by '@' act as a whitelist | |
let configpath = 'C:/.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 | |
" 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 RA :tabnew @@reddit_prog/@@top_all<CR> | |
map RD :tabnew @@reddit_prog/@@top_day<CR> | |
let mapleader = "/" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment