Created
October 18, 2011 11:10
-
-
Save Ephigenia/1295180 to your computer and use it in GitHub Desktop.
vimrc-example
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
| " only use with buftabs plugin | |
| set showtabline=0 | |
| " custom colorsheme | |
| colorscheme darkness | |
| " set textmate as editr | |
| set editor="mate -w" | |
| " show hover links in status bar | |
| set showstatuslinks=2 | |
| js document.getElementById("status-bar").setAttribute("moz-collapsed", false); | |
| " no error sound, just flash display | |
| set errorbells visualbell | |
| " alternative tab navigation | |
| map b gt | |
| map v gT | |
| " tab navigation via arrow keys | |
| map <Left> <C-p> | |
| map <Right> <C-n> | |
| map h <C-p> | |
| map l <C-n> | |
| " bit.ly shortener. | |
| javascript <<EOF | |
| shortenURLIsGd = function (url) { | |
| var req = new XMLHttpRequest(); | |
| " get your username and api key from bit.ly!!! | |
| req.open("GET", "http://api.bit.ly/v3/shorten?login=[Username]&apiKey=[API_KEY]&format=txt&longUrl=" + escape(url), true) | |
| req.onreadystatechange = function (ev) { | |
| if (req.readyState == 4) { | |
| if (req.status == 200) { | |
| util.copyToClipboard(req.responseText, true); | |
| } else { | |
| liberator.echo(req.responseText); | |
| } | |
| } | |
| } | |
| req.send(null); | |
| } | |
| EOF | |
| map <silent> short :javascript shortenURLIsGd(buffer.URL);<CR> | |
| map <silent> bitly :javascript shortenURLIsGd(buffer.URL);<CR> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment