Skip to content

Instantly share code, notes, and snippets.

@plumps
Last active January 16, 2018 13:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save plumps/e6f01339889b37387a758e914ffcd068 to your computer and use it in GitHub Desktop.
Save plumps/e6f01339889b37387a758e914ffcd068 to your computer and use it in GitHub Desktop.
cvimrc
" this will enable the config block below on the domain 'reddit.com'
site '*://*.reddit.com/*' {
unmap j
unmap k
set numerichints
}
site '*://github.com/*' {
unmap t
}
" 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