2010-10-09 12:26:18 -04:00
|
|
|
Gundo.vim is Vim plugin to visualize your Vim undo tree.
|
|
|
|
|
|
|
|
Current status: Alpha. It will probably eat your data. Be careful.
|
|
|
|
==================================================================
|
|
|
|
|
|
|
|
|
|
|
|
Requirements
|
|
|
|
------------
|
|
|
|
|
|
|
|
* Vim 7.3+
|
|
|
|
* Python support for Vim.
|
|
|
|
|
|
|
|
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>
|
|
|
|
|
|
|
|
[Pathogen]: http://www.vim.org/scripts/script.php?script_id=2332
|
|
|
|
|
|
|
|
Usage
|
|
|
|
-----
|
|
|
|
|
2010-10-09 12:27:34 -04:00
|
|
|
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).
|
2010-10-09 12:26:18 -04:00
|
|
|
|
2010-10-09 12:27:34 -04:00
|
|
|
Press `<F5>` again to close the undo graph and return to your file.
|
2010-10-09 12:26:18 -04:00
|
|
|
|
2010-10-09 12:27:34 -04:00
|
|
|
Use `j` and `k` to move up and down the graph. The preview pane will update with
|
2010-10-09 12:26:18 -04:00
|
|
|
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.
|