Created
April 25, 2015 03:13
-
-
Save vifino/944e1ab3f56ef7fb5595 to your computer and use it in GitHub Desktop.
.cVimrc
This file contains 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
" Config used by me. It's probably obvious that I'm a specific type of user. | |
" No autofocus. | |
set noautofocus | |
" No cursor. | |
set autohidecursor | |
" Search engines. | |
let searchengine wikipedia = "https://www.wikipedia.org/w/index.php?title=Special:Search&search=" | |
let searchengine archwiki = "https://wiki.archlinux.org/index.php/Special:Search/" | |
let searchengine aur = "https://aur.archlinux.org/packages/?O=0&K=" | |
let searchengine shodan = "https://www.shodan.io/search?query=" | |
let searchengine urbandictionary = "http://urbandictionary.com/define.php?term=" | |
let searchengine symbolhound = "http://www.symbolhound.com/?q=" | |
let searchengine mdn = "https://developer.mozilla.org/en-US/search?q=" | |
let searchengine stackoverflow = "http://stackoverflow.com/search?q=" | |
" Search aliases | |
let searchalias w = "wikipedia" | |
let searchalias arch = "archwiki" | |
let searchalias sh = "shodan" | |
let searchalias u = "urbandictionary" | |
let searchalias wa = "wolfram-alpha" | |
let searchalias so = "stackoverflow" | |
" Blacklists | |
let blacklists = ["https://mail.google.com/*","*://mail.google.com/*","@https://mail.google.com/mail/*"] | |
" Mappings | |
let mapleader = "," | |
map <Leader>r reloadTabUncached | |
map <Leader>x :restore<Space> | |
map <Leader>h :set hud!<CR> | |
map <Leader>? :open! chrome-extension://ihlenndgcmojhcghmfjfneahoeklbjjh/pages/mappings.html<CR> | |
" Code blocks | |
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 <Leader>i :call getIP<CR> | |
" Script hints | |
echo(link) -> {{ | |
alert(link.href); | |
}} | |
map <C-f> createScriptHint(echo) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment