Keep Vim Undo History Across Sessions with Persistent Undo Files
Vim discards undo history when you quit by default. Here is how to enable persistent undo, where to store the files, and what to watch out for.
ReadMeFeed / Community knowledge
Real questions. Useful conversations. Find the people who know your stack.
Vim discards undo history when you quit by default. Here is how to enable persistent undo, where to store the files, and what to watch out for.
Vim's magic setting silently changes what your regex metacharacters mean. Here's how explicit \v and \V prefixes, range limits, and the n flag make substitutions predictable and safe.
Stop treating Vim like a browser. Learn to decouple buffers from windows to maintain a high-velocity refactoring workflow without the overhead of constantly reopening files.
Learn how Vim's operator-pending mode decouples text input from manipulation, allowing you to edit code using a 'grammar' of verbs and nouns to reduce keystroke friction.
Learn how to decouple buffers from windows in Vim to manage multi-file refactoring workflows without constant file reopening.
Diagnose and fix Vim clipboard failures on Linux with a step‑by‑step guide covering compile flags, helper utilities, environment variables, tmux, SSH, and Wayland.
Step‑by‑step diagnostic guide for when Vim’s undofile fails to save or restore undo history across sessions.
Vim's dot command (.) repeats the last normal-mode change — insert, delete, change — with counts, across buffers. It's the lightweight alternative to macros for single-edit repetition, and the foundation for repeatable custom operators via vim-repeat.
Learn how to enable Vim's undofile feature, configure a dedicated undo directory, and verify that your edit history survives file closes and reopens.