A git mirror of gundo.vim
JavaScript Vim script Shell
Switch branches/tags
Pull request Compare This branch is 4 commits ahead, 100 commits behind sjl:master.
Failed to load latest commit information.
doc Add a g:gundo_help setting to disable the inline help. Nov 10, 2010
plugin Merge commit 'upstream/master' Nov 10, 2010
site Add a g:gundo_help setting to disable the inline help. Nov 10, 2010
.hgtags Added tag v1.0.0 for changeset ede41dc6613e Oct 29, 2010


Flattr this

Gundo.vim is Vim plugin to visualize your Vim undo tree.







  • Vim 7.3+
  • Python support for Vim
  • Python 2.4+


Use Pathogen. Don't use pathogen? Start.

hg clone http://bitbucket.org/sjl/gundo.vim ~/.vim/bundle/gundo

There's a git mirror if you prefer:

git clone http://github.com/sjl/gundo.vim.git ~/.vim/bundle/gundo


Run :help gundo for the full docs. Here's the in-a-nutshell version.

When you're editing a file you can bring up the undo graph for that file with <F5> (or whatever key you mapped it to).

Press <F5> again to close the undo graph and return to your file.

Use j and k to move up and down the graph. The preview pane will update with a diff of the change made by the undo state you're currently on.

Press return to revert the file's contents to that undo state and return to the file.

Configuring Gundo

Out of the box, you can toggle the Gundo window using the <F5> key. You can customize the trigger to suit your taste by creating a mapping in your .vimrc file. For example, if you wanted to use ,u to trigger Gundo, you could add the following to your ~/.vimrc:

let mapleader = ","
nnoremap <leader>u :GundoToggle<CR>

If you create your own mapping, then the <F5> key will not toggle the Gundo window.