You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to vim...@googlegroups.com
Is there a built-in way or a plugin to extend / to the undo history?
Use case: working on some code, I deleted a function a few hours ago,
and I wanted to reinstate it. Using :earlier/:later did the job, but
required a bit of trial and error.
Thanks,
Life.
Enan Ajmain
unread,
Mar 9, 2023, 3:57:48 AM3/9/23
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Lifepillar, vim...@googlegroups.com
On Wed, 8 Mar 2023 13:37:40 -0000 (UTC)
Lifepillar <lifep...@lifepillar.me> wrote:
> Is there a built-in way or a plugin to extend / to the undo history?
>
> Use case: working on some code, I deleted a function a few hours ago,
> and I wanted to reinstate it.
There isn't a built-in way. And for your example usecase, I think git
would be a better tool to handle it.
--
Enan
Markus Braun
unread,
Mar 9, 2023, 4:14:26 AM3/9/23
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to vim...@googlegroups.com, lifep...@lifepillar.me
Possibly the Mundo plugin (https://github.com/simnalamburt/vim-mundo)
will help with this use case. This plugin visualizes the undo tree,
speeds up traversing the tree and supports searching in the changes.
Markus Braun
--
Any errors in spelling, tact or fact are transmission errors