Commit Graph

8 Commits

Author SHA1 Message Date
Eli Gundry
50092711ff Added :GundoHide & :GundoShow for easier scripting 2011-12-31 17:37:13 -05:00
Steve Losh
12b6f67aeb Merge. 2011-09-19 08:37:53 -04:00
Strahinja Markovic
4ef4d54aa0 Fix a logic bug with python3 detection
Bug was introduced with previous commit.
2011-08-29 14:39:27 +02:00
Strahinja Markovic
9271614008 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.
2011-08-29 14:13:01 +02:00
Matthew Bell
e90ec8b55d Fixed an issue with return syntax that breaks in python 2.4 2011-08-27 16:38:43 -07:00
lilydjwg
b1a9bae565 Add Python3 support 2011-07-30 17:07:25 +08:00
Steve Losh
63ca27fa2a Formatting. 2011-06-28 16:58:00 -04:00
Kien N
52c65f2eb4 Move most of the script to autoload 2011-06-29 03:06:37 +07:00