Last active
April 6, 2017 14:03
-
-
Save kopa/7ff9bc0b095c49f72f7d353bcb75b1af to your computer and use it in GitHub Desktop.
Settings file for cvim
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 | |
" alias ':g' to ':tabnew google' | |
command g tabnew google | |
let completionengines = ["google", "amazon", "imdb"] | |
" blacklists prefixed by '@' act as a whitelist | |
let blacklists = ["https://mail.google.com/*", "*://mail.google.com/*", "@*://*orf.at/*"] | |
map gb :buffer<Space> | |
" This unmaps the default '<C-f>' mapping | |
unmap <C-f> <C-t> <C-y> <C-c> <A-left> <A-right> | |
iunmap <C-f> <C-t> <C-y> <C-c> <A-left> <A-right> | |
" fix select all | |
iunmap <c-a> | |
" Toggle the current HUD display value | |
map <C-h> :set hud!<CR> | |
" 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 :to @@reddit_prog/@@top_all<CR> | |
map TD :to @@reddit_prog/@@top_day<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> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment