Created
January 25, 2011 21:15
-
-
Save chelmertz/795682 to your computer and use it in GitHub Desktop.
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
# Prerequisites: git installed, account at github.com | |
# This demo is performed at a mac | |
git clone https://github.com/mattn/gist-vim.git ~/ # get the gist plugin for vim | |
cp ~/gist-vim/plugin/gist.vim ~/.vim/plugin/ # place the plugin where it belongs | |
git config --global github.user <user> # replace <user> with your github username | |
git config --global github.token <token> # replace <token> with token found in github > account settings > account admin | |
# try it out | |
vim test.php | |
#inside vim: | |
:Gist # will post whole file to gist under your nickname | |
# full API on http://www.vim.org/scripts/script.php?script_id=2423 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment