README.markdown @ 6049a87d56c6

Fix bug with python3 support crashing Gundo

The recent change that introduced python3 support also made it the default
python version used for Gundo. This caused a problem with certain versions of
vim where upon toggling the Gundo window, we would be greeted with an error
message: "This Vim cannot execute :py3 after using :python"

This commit adds a g:gundo_prefer_python3 variable (default 0) that can be used
to set a preference for python3. By default, python2 will be used.

This also required moving the variable initialization code to the top, since
just evaluating `has('python3')` seems to trigger the vim error.
author Strahinja Markovic <strahinja.markovic@gmail.com>
date Mon, 29 Aug 2011 14:13:01 +0200
parents 43fd6ce86ac4
children 1d84591fff04
<a href="http://flattr.com/thing/74149/Gundo-vim" target="_blank">
<img src="http://api.flattr.com/button/button-compact-static-100x17.png" alt="Flattr this" title="Flattr this" border="0" /></a>

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

Preview
-------

Screencast:

### [http://screenr.com/M9l](http://screenr.com/M9l)

Screenshot:

<a href="http://www.flickr.com/photos/sjl7678/5093114605/" title="gundo by stevelosh, on Flickr"><img src="http://farm5.static.flickr.com/4113/5093114605_ebc46d6494.jpg" width="487" height="500" alt="gundo" /></a>

Requirements
------------

* Vim 7.3+
* Python support for Vim
* Python 2.4+

Installation and Usage
----------------------

Check out the [project site][] for installation instructions.

[project site]: http://sjl.bitbucket.org/gundo.vim/

License
-------

GPLv2+, just like Mercurial.