sponsor Vim development Vim logo Vim Book Ad

purge_undodir.vim : Purging useless undofile on exit

 script karma  Rating -1/1, Downloaded by 12    Comments, bugs, improvements  Vim wiki

created by
Jia Sui
 
script type
utility
 
description
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

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

You can always get the latest version on github
https://github.com/jsfaint/purge_undodir.vim
 
install details
1. Plugin Manager

Use your favorite plugin and add "jsfaint/purge_undodir.vim"

2. Traditional method

Unzip the zip file under your .vim (*nux) or vimfiles(windows) directory.
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
purge_undodir.vim-1.0.zip v1.0 2017-09-15 7.3 Jia Sui Initial upload
ip used for rating: 54.80.132.10

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
SourceForge.net Logo