Skip to content

Instantly share code, notes, and snippets.

@maddenpj
Last active January 8, 2018 19:53
Show Gist options
  • Save maddenpj/ca7542e4c96452fb4582dbc0ef440f39 to your computer and use it in GitHub Desktop.
Save maddenpj/ca7542e4c96452fb4582dbc0ef440f39 to your computer and use it in GitHub Desktop.
cVim Settings
" Global
set noautofocus
let searchalias g = "google"
let blacklists = ["*://github.com/*","*://*.github.com/*","http://45.55.219.52/*","https://portal.azure.com/*"]
command g tabnew google
map <C-d> scrollPageDown
map <C-e> scrollPageUp
map <C-q> :duplicate<CR>
map t :tabnew chrome:/newtab<CR>
imap <C-w> deleteWord
" Site-specific
site '*://*.youtube.com/*' {
map dq :open @%?disable_polymer=true<CR>
map dw :open @%&disable_polymer=true<CR>
}
site '*://*.reddit.com/*' {
unmap j
unmap k
unmap ]
unmap ]]
unmap [
unmap [[
unmap c
unmap x
set numerichints
}
" Misc
getIP() -> {{
httpRequest({url: 'http://api.ipify.org/?format=json', json: true},
function(res) { Status.setMessage('IP: ' + res.ip); });
}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment