diff --git a/autoload/SpaceVim.vim b/autoload/SpaceVim.vim index 595f57888..66bfc89ed 100644 --- a/autoload/SpaceVim.vim +++ b/autoload/SpaceVim.vim @@ -1647,6 +1647,40 @@ endfunction " General guide for using SpaceVim. Including layer configuration, bootstrap " function. +"" +" @section undo-tree, usage-undotree +" @parentsection usage +" Undo tree visualizes the undo history and makes it easier to browse and +" switch between different undo branches.The default key binding is `F7`. +" If `+python` or `+python3` is enabled, `vim-mundo` will be used, +" otherwise `undotree` will be used. +" +" Key bindings within undo tree windows: +" > +" key bindings description +" `G` move bottom +" `J` move older write +" `K` move newer write +" `N` previous match +" `P` play to +" `<2-LeftMouse>` mouse click +" `/` search +" `` preview +" `d` diff +" `` move older +" `` move newer +" `i` toggle inline +" `j` move older +" `k` move newer +" `n` next match +" `o` preview +" `p` diff current buffer +" `q` quit +" `r` diff +" `gg` move top +" `?` toggle help +" < + "" " @section windows-and-tabs, usage-windows-and-tabs " @parentsection usage diff --git a/doc/SpaceVim.txt b/doc/SpaceVim.txt index 531c88235..9d3091f0d 100644 --- a/doc/SpaceVim.txt +++ b/doc/SpaceVim.txt @@ -215,7 +215,8 @@ CONTENTS *SpaceVim-contents* 4. repl............................................|SpaceVim-usage-repl| 5. search-and-replace................|SpaceVim-usage-search-and-replace| 6. tasks..........................................|SpaceVim-usage-tasks| - 7. windows-and-tabs....................|SpaceVim-usage-windows-and-tabs| + 7. undo-tree...................................|SpaceVim-usage-undotree| + 8. windows-and-tabs....................|SpaceVim-usage-windows-and-tabs| 8. API........................................................|SpaceVim-api| 1. cmdlinemenu................................|SpaceVim-api-cmdlinemenu| 2. data#dict....................................|SpaceVim-api-data-dict| @@ -5129,6 +5130,40 @@ TASKS *SpaceVim-usage-tasks* general guide for tasks manager in SpaceVim. +============================================================================== +UNDO-TREE *SpaceVim-usage-undotree* + +Undo tree visualizes the undo history and makes it easier to browse and switch +between different undo branches.The default key binding is `F7`. If `+python` +or `+python3` is enabled, `vim-mundo` will be used, otherwise `undotree` will +be used. + +Key bindings within undo tree windows: +> + key bindings description + `G` move bottom + `J` move older write + `K` move newer write + `N` previous match + `P` play to + `<2-LeftMouse>` mouse click + `/` search + `` preview + `d` diff + `` move older + `` move newer + `i` toggle inline + `j` move older + `k` move newer + `n` next match + `o` preview + `p` diff current buffer + `q` quit + `r` diff + `gg` move top + `?` toggle help +< + ============================================================================== WINDOWS-AND-TABS *SpaceVim-usage-windows-and-tabs*