How mbbill/undotree works
Undotree is a Vim plugin for browsing Vim’s undo-history tree and switching between its branches. The documented workflow is: a Vim user runs :UndotreeToggle, browses the history panel, and selects a state; changes are temporary buffer edits, not disk writes. The README also documents persistent-undo setup and cleanup, plus opt-in debug logging. Source excerpts were unavailable, so links below rely only on README statements; implementation details and unshown dispatches are omitted.
Main entry points: autoload/undotree.vim History panel · plugin/undotree.vim Toggle command
Components 10
Undo history
- Undo branches
- Current buffer
Plugin runtime
- Toggle command
plugin/undotree.vim - History panel
autoload/undotree.vim - Panel syntax
syntax/undotree.vim
Persistence and debug
- Persistent undo
- Undo cleanup
autoload/undotree.vim - Debug log
Other components
- Vim user
- Vim editor
Connections 10
- Vim user → Toggle command: runs
README.md - Toggle command → History panel: opens panel
README.md - Vim editor → Undo branches: maintains branches
README.md - History panel → Undo branches: browses branches
README.md - Vim user → History panel: selects state
README.md - History panel → Current buffer: temporarily changes
README.md - Vim editor → Persistent undo: saves history
README.md - Vim user → Persistent undo: enables
README.md - Vim user → Undo cleanup: requests cleanup
README.md - Vim editor → Debug log: appends debug
README.md