Go to file
2010-11-09 21:13:21 -05:00
doc Add the p mapping to preview a change. 2010-11-09 21:13:21 -05:00
plugin Add the p mapping to preview a change. 2010-11-09 21:13:21 -05:00
site Add the p mapping to preview a change. 2010-11-09 21:13:21 -05:00
.hgignore Add a help file. 2010-10-12 23:43:29 -04:00
.hgtags Added tag v1.0.0 for changeset ede41dc6613e 2010-10-29 10:25:21 -04:00
README.markdown README adjustments. 2010-10-29 10:21:09 -04:00

Flattr this

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

Preview

Screencast:

http://screenr.com/M9l

Screenshot:

gundo

Requirements

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

Installation

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

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.