Last Updated: February 25, 2016
· bchretien


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:


For a private gist:

:Gist -p

To create an anomymous gist:

:Gist -a


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:

If you're using Vundle:

Bundle 'mattn/gist-vim'