This is a very simple vim plugin that adds the command :UndoClear
.
To reset the history of the current (%
) buffer:
:UndoClear
To reset the history of the alternate (#
) buffer:
:UndoClear #
If manage your vim plugins with pathogen
then installation is as simple as:
$ cd ~/.vim/bundle && git clone https://github.com/thedward/vim-undoclear.git
Otherwise, consult your plugin manager's documentation (or your vim documentation if you do not use a plugin manager)