undotree
undotree copied to clipboard
set undotree to populate tree only on file written event (for example with :w)
the problem is the undotree gets overpopulated, is it possible to populate the tree only when writting the file and not always when leave insert mode, (with always I mean: on what I think is populating the tree on InsertLeave event)
what do you mean "overpopulated"? in vim undo nodes are created very often, usually when leaving the insert mode rather than writing to the disk.
exactly they are created very ofter, I would like to be able to change how ofter they are created, by changing the event at which they are created for example, instead of the event InsertLeave, another event in the list 'h: events', is this possible? WIth overpopulated I meant they are created too often, but then again, it's a matter of personal taste, so I guess it could be configurable(based on an event), but I am not sure how to do it here, or if it even is possible. In my case, I would like to create the node when writting the buffer to disk.
As far as I know, you're not able to change how often the undo nodes are created, nor can the plugin. The undo nodes are usually created when user exits insert mode, and this is why the plugin chose to hook on this event. It doesn't mean the plugin created the undo node. The plugin is essentially a "visualizer“ that displays the vim internal undo state in a fancy way.