Skip to content

Instantly share code, notes, and snippets.

@chelmertz
Created January 25, 2011 21:15
Show Gist options
  • Save chelmertz/795682 to your computer and use it in GitHub Desktop.
Save chelmertz/795682 to your computer and use it in GitHub Desktop.
# 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