Skip to content

Instantly share code, notes, and snippets.

@yannisxu
Last active January 4, 2016 12:57
Show Gist options
  • Save yannisxu/ccd25e116d56ef2ecdf4 to your computer and use it in GitHub Desktop.
Save yannisxu/ccd25e116d56ef2ecdf4 to your computer and use it in GitHub Desktop.
cVimrc
set nosmoothscroll
let scrollduration = 10
let scrollstep = 70
let blacklists = ["https://fengcheco.com/*","https://inbox.google.com/*","https://en.todoist.com/*","https://todoist.com/*"]
" 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