Last Updated: February 25, 2016
·
500
· pskirann

Quickly save code snippets to gist using vim

Easy way to save code snippets and cheatsheets to gist using vim

Usage

List your public gists.

:Gist -l

Store current buffer in gist

:Gist -P

Installation

Install with Vundle

Add the following lines to your .vimrc.

Bundle 'mattn/webapi-vim'
Bundle 'mattn/gist-vim'

Setup:

First, you need to set your GitHub username in git's global configuration:

$ git config --global github.user <username>

Store your github token in ~/.gist-vim.

Reference

https://github.com/mattn/gist-vim