Skip to content
This repository has been archived by the owner on Jul 12, 2019. It is now read-only.

jsfaint/purge_undodir.vim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

purge_vim_undodir.vim

Inspired by https://blog.debiania.in.ua/posts/2012-07-31-purging-vim-undodir.html
Implement it with pure vimscript for multiple platform support.

vim persistent-undo feature is very useful, but it will always keep the undofile in undodir, even the original file was already deleted.
This plugin will purge these undofile for you. 😄

Tested in vim/neovim on Windows/Linux/macOS

Usage

This plugin will running on VimLeave.
You can also run it manually by :call purge_undodir#purge()