Add g:gundo_disable.
fixes issue 15
author |
Steve Losh <steve@stevelosh.com> |
date |
Tue, 02 Nov 2010 00:07:18 -0400 |
parents |
84b85b489fc4
|
children |
c2222517b5da
|
branches/tags |
(none) |
files |
doc/gundo.txt plugin/gundo.vim site/index.html |
Changes
--- a/doc/gundo.txt Fri Oct 29 16:35:30 2010 -0400
+++ b/doc/gundo.txt Tue Nov 02 00:07:18 2010 -0400
@@ -12,6 +12,7 @@
3.2 gundo_preview_height ...... |gundo_preview_height|
3.3 gundo_preview_bottom ...... |gundo_preview_bottom|
3.4 gundo_right ............... |gundo_right|
+ 3.5 gundo_disable ............. |gundo_disable|
4. License ........................ |GundoLicense|
5. Bugs ........................... |GundoBugs|
6. Contributing ................... |GundoContributing|
@@ -153,6 +154,16 @@
Default: 0 (off, open on the left side)
+------------------------------------------------------------------------------
+3.5 g:gundo_disable *gundo_disable*
+
+Set this to 1 to disable Gundo entirely.
+
+Useful if you use the same ~/.vim folder on multiple machines, and some of
+them may not have Python support.
+
+Default: 0 (Gundo is enabled as usual)
+
==============================================================================
4. License *GundoLicense*
--- a/plugin/gundo.vim Fri Oct 29 16:35:30 2010 -0400
+++ b/plugin/gundo.vim Tue Nov 02 00:07:18 2010 -0400
@@ -11,7 +11,7 @@
"{{{ Init
-if !exists('g:gundo_debug') && (exists('loaded_gundo') || &cp)"{{{
+if !exists('g:gundo_debug') && (exists('g:gundo_disable') || exists('loaded_gundo') || &cp)"{{{
finish
endif
let loaded_gundo = 1"}}}
--- a/site/index.html Fri Oct 29 16:35:30 2010 -0400
+++ b/site/index.html Tue Nov 02 00:07:18 2010 -0400
@@ -93,6 +93,7 @@
<li><a href="#gundo_preview_height">g:gundo_preview_height</a></li>
<li><a href="#gundo_preview_bottom">g:gundo_preview_bottom</a></li>
<li><a href="#gundo_right">g:gundo_right</a></li>
+ <li><a href="#gundo_disable">g:gundo_disable</a></li>
</ul>
</li>
<li><a href="#license">License</a></li>
@@ -274,6 +275,18 @@
</p>
<p>Default: 0 (off, open on the left side)</p>
+
+ <a name="gundo_disable"></a>
+ <h2>g:gundo_disable</h2>
+
+ <p>Set this to 1 to disable Gundo entirely.</p>
+
+ <p>
+ Useful if you use the same <code>~/.vim</code> folder on
+ multiple machines, and some of them may not have Python support.
+ </p>
+
+ <p>Default: 0 (Gundo is enabled as usual)</p>
</section>
<section>
<a name="license"></a>