No built-in expiration or size limit for persistent undo files
Persistent undo retention without automatic pruning Enabling undofile makes Vim retain undo history across sessions by writing one undo file per edited buffer into undodir . The filename is derived from the edited file's full path, so moving or renaming a file orphans its earlier undo file while creating a new one. Vim does not appear to expire, compact, or