On 2006-08-10, Eddy Zhao <[EMAIL PROTECTED]> wrote: > Hi, > > Very often, I open a lot of files to edit. When I exiting vim, vim > prompt me to save every file which contain changes not saved yet. So, > > - Is there plugin that could highlight the > changed-yet-not-saved-lines (possibly with yellow background), so that > I could easily locate and check those changes and decide whether to > save it or not. > > - Furthermore, is there plugin that could highlight the > changed-and-saved-lines in a vim session in the file (possibly with > green background), so that I could easily audit all changes of a file > in a vim edit session.
This command was posted by Piet Delport a few years ago. I use it all the time. command DiffOrig vert new | set bt=nofile | r # | 0d_ | diffthis | wincmd p | diffthis Gary -- Gary Johnson | Agilent Technologies [EMAIL PROTECTED] | Wireless Division | Spokane, Washington, USA