Tuesday, August 2, 2011

Re: swap files reverting my work erroneously

On 2011-08-02, Christian Brabandt wrote:
> On Tue, August 2, 2011 4:45 pm, Gary Johnson wrote:
> > On 2011-08-02, ZyX wrote:
> >> Reply to message «Re: swap files reverting my work erroneously»,
> >> sent 08:20:31 02 August 2011, Tuesday
> >> by Gary Johnson:
> >>
> >> > The trouble with
> >> > continually saving, though, is that you lose your reference for the
> >> > changes you've made to the file since you started editing. That's
> >> > not always important, but sometimes it's very handy. And having
> >> > swap files means I can do that without worry.
> >> Was not this solved by persistent undo introduced in vim-7.3?
> >
> > No. I don't want to undo my changes, I want to see my changes.
>
> I am sure there are plugins, that allow to do that. I have written
> changesPlugin http://www.vim.org/scripts/script.php?script_id=3052
> that tries to accomplish that (either against SCM or the saved version).

I have several plugins that do that for various SCMs and I have
DiffOrig in my ~/.vimrc. I wasn't saying that I was in need of a
way to see my changes, only that persistent undo is not a good
solution for the problem under discussion.

As I understand it, your plugin displays the same information as
DiffOrig but in a less intrusive format. Its reference is still the
file on disk.

Regards,
Gary

--
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

No comments:

Post a Comment