Last active
August 26, 2017 06:27
-
-
Save houming818/e7c9122b5772b3b158bda2a217dbcc1a to your computer and use it in GitHub Desktop.
cVim.conf
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" 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