Tuesday, July 5, 2016

Re: vim: keep undo when moving a file?

On Tue, Jul 05, 2016, ping song wrote:
> I have a file that I keep using for quite a long while, it's convenient to
> keep the editing history forever, so if something gone wrong I can always
> undo back and locate the issue.
>
> today I moved the file to another folder and all undo history gone.
> I tried to rename my original undo file according to the new location , but
> still not work...
> anyone has a good solution?

I just realized that a plugin I enjoy using, vim-eunuch, does allow the
history to be saved when you move or rename files. It defines a handful
of ex commands for Unix-like file operations; the ones I'm talking about
are of the form

:Rename newname

and

:Move newfolder

(you run those while you have the file open and it moves it in place).

--
Eric Christopherson

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment