Last Updated: February 25, 2016
·
847
· bchretien

gist-vim

If you're a Vim user and a GitHub/Gist user, you definitely need to get the following plugin: gist-vim.

This plugin provides an easy way to create gists with Vim. To post your current file as a gist, you simply need to type:

:Gist

For a private gist:

:Gist -p

To create an anomymous gist:

:Gist -a

demo

The plugin supports both basic and two-factor authentication using GitHub API v3. Credentials are stored in ~/.gist-vim, and you can also check your token in your GitHub account settings ("Applications" tab).

You can get the code on GitHub: https://github.com/mattn/gist-vim

If you're using Vundle:

Bundle 'mattn/gist-vim'