Go to file
2010-10-20 19:12:32 -04:00
doc Add more to the readme. 2010-10-18 11:03:51 -04:00
plugin Factor out the buffer mappings into functions. 2010-10-20 19:12:32 -04:00
.hgignore Add a help file. 2010-10-12 23:43:29 -04:00
.hgtags Added tag semver for changeset 4101cbccf1d5 2010-10-18 16:21:51 -04:00
README.markdown Readme tweak. 2010-10-20 18:11:03 -04:00

Flattr this

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

Current status: Beta. It might eat your data. Be careful.

Preview

Screenshot:

gundo

Screencast: http://screenr.com/M9l

Requirements

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

Installation

Use Pathogen. Don't use pathogen? Start.

Add a mapping to your ~/.vimrc (change the key to suit your taste):

nnoremap <F5> :GundoToggle<CR>

Usage

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.