-
Notifications
You must be signed in to change notification settings - Fork 1
/
.cvimrc
35 lines (30 loc) · 1 KB
/
.cvimrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
" Settings
set nohud
set typelinkhints
let searchlimit = 30
let scrollstep = 70
let barposition = "top"
let completionengines = ["google", "amazon", "imdb", "youtube", "wikipedia"]
let blacklists = ["*://mail.google.com/*", "*://helpshift.atlassian.net/*"]
let mapleader = ","
" Mappings
map <Leader>r reloadTabUncached
map <Leader>x :restore<Space>
map <Leader>b :buffer<Space>
" 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 = '/Users/vedang/.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