Add g:gundo_disable.

fixes issue 15
This commit is contained in:
Steve Losh 2010-11-02 00:07:18 -04:00
parent 284ea96d36
commit 76c9936720
3 changed files with 25 additions and 1 deletions

View File

@ -12,6 +12,7 @@ CONTENTS *Gundo-contents*
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 @@ instead of the left.
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*

View File

@ -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"}}}

View File

@ -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 @@ let g:gundo_right = 1
</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>