gist.vim: Vim Plugin For Gist

Gist is a simple way to share snippets and pastes with others. All gists are git repositories, so they are automatically versioned, forkable and usable as a git repository.

Yasuhiro Matsumoto’s Gist.vim plugin allow you to work with gist from Vim.

Working With gist.vim


post whole text to gist.

Gist -p

post whole text to gist with private.

:Gist -a

post whole text to gist with anonymous.

:Gist -e

edit the gist. (shoud be work on gist buffer) you can update the gist with :w command on gist buffer.

:Gist -e foo.js

edit the gist with name ‘foo.js’. (shoud be work on gist buffer)


get gist XXXXX.

:Gist -c XXXXX.

get gist XXXXX and put to clipboard.

:Gist -l

list gists from mine.

:Gist -la

list gists from all.

Installing Gist.vim

1. Download the script
2. Move Gist.vim to ~/.vim (on Unix/Linux) or ~\vimfiles (on Windows).
3. Restart Vim.