Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pr 27 #7

Merged
merged 3 commits into from
Mar 11, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion autoload/gundo.py
Original file line number Diff line number Diff line change
Expand Up @@ -924,7 +924,8 @@ def GundoRevert():
_undo_to(target_n)

vim.command('GundoRenderGraph')
_goto_window_for_buffer(back)
if int(vim.eval('g:gundo_return_on_revert')):
_goto_window_for_buffer(back)

if int(vim.eval('g:gundo_close_on_revert')):
vim.command('GundoToggle')
Expand Down
3 changes: 3 additions & 0 deletions autoload/gundo.vim
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ endif"}}}
if !exists('g:gundo_inline_undo')"{{{
let g:gundo_inline_undo = 1
endif"}}}
if !exists("g:gundo_return_on_revert")"{{{
let g:gundo_return_on_revert = 1
endif"}}}

let s:has_supported_python = 0
if g:gundo_prefer_python3 && has('python3')"{{{
Expand Down
9 changes: 9 additions & 0 deletions doc/gundo.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ CONTENTS *Gundo-contents*
3.12 gundo_playback_delay ...... |gundo_playback_delay|
3.13 gundo_mirror_graph ........ |gundo_mirror_graph|
3.14 gundo_inline_undo ......... |gundo_inline_undo|
3.15 gundo_return_on_revert .... |gundo_return_on_revert|
4. License ......................... |GundoLicense|
5. Bugs ............................ |GundoBugs|
6. Contributing .................... |GundoContributing|
Expand Down Expand Up @@ -255,6 +256,13 @@ provides a quick summary of the diff w/o having to navigate.

Default: 1 (inline graph)

------------------------------------------------------------------------------
3.15 g:gundo_return_on_revert *gundo_return_on_revert*

Set this to 0 to keep focus in the Gundo window after a revert.

Default: 1

==============================================================================
4. License *GundoLicense*

Expand All @@ -281,6 +289,7 @@ GitHub: https://github.com/sjl/gundo.vim/
v3.X - WIP
* Add one line diff in __Gundo__ window.
* Adds g:gundo_mirror_graph setting.
* Adds g:gundo_return_on_revert setting.
* Adds ability to toggle help on/off in __Gundo__ window.
* Adds J and K commands (navigate between written undos)
* Adds /, n and N commands (search undos)
Expand Down