Re: Feature request: enable undo after reloading file

2007-11-07 Fir de Conversatie Fan Decheng
Alexei Alexandrov wrote: Hi, I'd like to request a feature in Vim which would be useful not very often but is very important I think. Usually I don't lose information in Vim. You can undo things, you can restore the file from a backup etc. There is only one situation which led me to

Re: Feature request: enable undo after reloading file

2007-11-05 Fir de Conversatie James Longstreet
On 11/5/07, Bram Moolenaar [EMAIL PROTECTED] wrote: I once looked into including diff code into Vim, but could only find code that is relatively complicated. If someone knows a nice, well-behaving, small diff algorithm implementation in C that would help a lot. It's a bit messy from first

Re: Feature request: enable undo after reloading file

2007-11-04 Fir de Conversatie Bram Moolenaar
Alexei Alexandrov wrote: I'd like to request a feature in Vim which would be useful not very often but is very important I think. Usually I don't lose information in Vim. You can undo things, you can restore the file from a backup etc. There is only one situation which led me to

Re: Feature request: enable undo after reloading file

2007-11-04 Fir de Conversatie Andy Wokula
Bram Moolenaar schrieb: Alexei Alexandrov wrote: I'd like to request a feature in Vim which would be useful not very often but is very important I think. Usually I don't lose information in Vim. You can undo things, you can restore the file from a backup etc. There is only one

Re: Feature request: enable undo after reloading file

2007-11-04 Fir de Conversatie Alexei Alexandrov
On 11/4/07, Bram Moolenaar [EMAIL PROTECTED] wrote: I'll put it in the todo list. However, don't expect it soon. I think the only right way to implement it is to do a diff between the buffer text and the file that is to be loaded. The difference would then be stored as a change in the