# HG changeset patch # User heavenshell # Date 1329319129 -32400 # Node ID ddedb62323868396d24d7dc3639b29fbb3ccb48b # Parent a860f15c7226ee5b352303c5032732a423409932 Add auto preview global option diff -r a860f15c7226 -r ddedb6232386 autoload/gundo.vim --- a/autoload/gundo.vim Tue Feb 07 22:01:12 2012 -0500 +++ b/autoload/gundo.vim Thu Feb 16 00:18:49 2012 +0900 @@ -46,6 +46,9 @@ if !exists("g:gundo_prefer_python3")"{{{ let g:gundo_prefer_python3 = 0 endif"}}} +if !exists("g:gundo_auto_preview")"{{{ + let g:gundo_auto_preview = 1 +endif"}}} let s:has_supported_python = 0 if g:gundo_prefer_python3 && has('python3')"{{{ @@ -377,7 +380,9 @@ call cursor(0, idx2 + 1) endif - call s:GundoRenderPreview() + if g:gundo_auto_preview == 1 + call s:GundoRenderPreview() + endif endfunction"}}} "}}} diff -r a860f15c7226 -r ddedb6232386 doc/gundo.txt --- a/doc/gundo.txt Tue Feb 07 22:01:12 2012 -0500 +++ b/doc/gundo.txt Thu Feb 16 00:18:49 2012 +0900 @@ -5,25 +5,26 @@ ============================================================================== CONTENTS *Gundo-contents* - 1. Intro .......................... |GundoIntro| - 2. Usage .......................... |GundoUsage| - 3. Configuration .................. |GundoConfig| - 3.1 gundo_width ............... |gundo_width| - 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_help ................ |gundo_help| - 3.6 gundo_disable ............. |gundo_disable| - 3.7 gundo_map_move_older ...... |gundo_map_move_older| - gundo_map_move_newer ...... |gundo_map_move_newer| - 3.8 gundo_close_on_revert ..... |gundo_close_on_revert| - 3.9 gundo_preview_statusline .. |gundo_preview_statusline| - gundo_tree_statusline ..... |gundo_tree_statusline| - 4. License ........................ |GundoLicense| - 5. Bugs ........................... |GundoBugs| - 6. Contributing ................... |GundoContributing| - 7. Changelog ...................... |GundoChangelog| - 8. Credits ........................ |GundoCredits| + 1. Intro ........................... |GundoIntro| + 2. Usage ........................... |GundoUsage| + 3. Configuration ................... |GundoConfig| + 3.1 gundo_width ............... |gundo_width| + 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_help ................ |gundo_help| + 3.6 gundo_disable ............. |gundo_disable| + 3.7 gundo_map_move_older ...... |gundo_map_move_older| + gundo_map_move_newer ...... |gundo_map_move_newer| + 3.8 gundo_close_on_revert ..... |gundo_close_on_revert| + 3.9 gundo_preview_statusline .. |gundo_preview_statusline| + gundo_tree_statusline ..... |gundo_tree_statusline| + 3.10 gundo_auto_preview ........ |gundo_auto_preview| + 4. License ......................... |GundoLicense| + 5. Bugs ............................ |GundoBugs| + 6. Contributing .................... |GundoContributing| + 7. Changelog ....................... |GundoChangelog| + 8. Credits ......................... |GundoCredits| ============================================================================== 1. Intro *GundoIntro* @@ -206,6 +207,13 @@ Default: unset (windows use the default statusline) +------------------------------------------------------------------------------ +3.10 g:gundo_auto_preview *gundo_auto_preview* + +Set this to 1 to rendering diff automatically with cursor move. + +Default: 1 (auto preview diff) + ============================================================================== 4. License *GundoLicense* @@ -228,7 +236,8 @@ ============================================================================== 7. Changelog *GundoChangelog* - +v2.3.1 + * Add auto preview option. v2.3.0 * Add statusline configuration. v2.2.2