plugins - vim temporary disable undo? -


i followed add-custom-header-to-your-file create own custom header plugin. when save file auto. update current date time last-modified field. add edit history undo list. how can disable undo temporary ?

you cannot disable undo without losing undo history. think undo implementation; pretty hard if had gap in there.

if don't worry losing history,

:set undolevels=-1 

(and restoring previous value) do. also, :undojoin can used fuse 2 otherwise separate entries together. in situation, it's best keep (automated) change inside undo history.


Comments

Popular posts from this blog

c++ - Creating new partition disk winapi -

Android Prevent Bluetooth Pairing Dialog -

VBA function to include CDATA -