# HG changeset patch # User Steve Losh # Date 1288670838 14400 # Node ID af0e290964bcd23cd188dda15becb3b3dc8f9ed9 # Parent 84b85b489fc409e394d51b0720ede9c2442061a6 Add g:gundo_disable. fixes issue 15 diff -r 84b85b489fc4 -r af0e290964bc doc/gundo.txt --- 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* diff -r 84b85b489fc4 -r af0e290964bc plugin/gundo.vim --- 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"}}} diff -r 84b85b489fc4 -r af0e290964bc site/index.html --- 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 @@
  • g:gundo_preview_height
  • g:gundo_preview_bottom
  • g:gundo_right
  • +
  • g:gundo_disable
  • License
  • @@ -274,6 +275,18 @@

    Default: 0 (off, open on the left side)

    + + +

    g: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)