Skip to content

Instantly share code, notes, and snippets.

@houming818
Last active August 26, 2017 06:27
Show Gist options
  • Save houming818/e7c9122b5772b3b158bda2a217dbcc1a to your computer and use it in GitHub Desktop.
Save houming818/e7c9122b5772b3b158bda2a217dbcc1a to your computer and use it in GitHub Desktop.
cVim.conf
" Settings
let barposition = "bottom"
set noautofocus
let searchengine instapaper = "https://www.instapaper.com/search?q=%s"
let searchengine pinboard = "https://www.pinboard.in/search/u:ironfish?query=%s"
let completionengines = ["google", "amazon", "instapaper", "pinboard"]
let searchalias google = "google"
let searchalias instapaper = "instapaper"
let searchalias pinboard = "pinboard"
command google tabnew google
command instapaper tabnew instapaper
command pinboard tabnew pinboard
let mapleader = ","
" Code blocks (see below for more info)
getIP() -> {{
httpRequest({url: 'http://ipinfo.io/json', json: true},
function(res) { Status.setMessage('IP: ' + res.ip); });
}}
" Displays your public IP address in the status bar
map <leader>l :call getIP<CR>
" Script hints
echo(link) -> {{
alert(link.href);
}}
" search commands
map <leader>b :buffer<space>
map <leader>g :google<space>
map <leader>p :pinboard<space>
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment