Closed lukelbd closed 9 months ago
I might try a PR sometime later this summer.
Originally I thought undotree was causing was causing these slowdowns but I tracked it to other things in .vimrc
. I'll close for now, if anyone else is interested feel free to give a try
Sometimes I have vim sessions open for an extremely long time, and it might help speed things up if I could clear both vim's undo history and the undo tree
cache
vimscript dictionary (which I am guessing stores the tree structure / is the part that goes beyond vim's capabiilties?).It would be nice to be able to do this with a command that clears the undo history and resets the undo tree, without having to go into the pane and pressing a shortcut.
Perhaps it could be defined
command -bang -nargs=0 :UndotreeClear call undotree#UndotreeClear(<bang>0)
, so that typing:UndotreeClear
resets the tree after issuing a confirmation prompt (like pressingC
) and:UndotreeClear!
does so without any user confirmation (<bang>0
would expand to0
or!0 == 1
in each case; this would pass anUndotreeClear()
function parameter called e.g.a:force
that determines whether user confirmation is bypassed).