Loading ...
Sorry, an error occurred while loading the content.

Re: How to check the difference with the origin file

Expand Messages
  • Gregory SACRE
    Thank you very much Yakov! It worked perfectly!
    Message 1 of 5 , Oct 2, 2006
    • 0 Attachment
      Thank you very much Yakov!
      It worked perfectly!

      On 10/2/06, Yakov Lerner <iler.ml@...> wrote:
      > On 10/2/06, Gregory SACRE <gregory.sacre@...> wrote:
      > > I was wondering if there is a way to see the differences between the
      > > file you are modifying and its original version.
      >
      > The following nice thing comes from Donn Washburn:
      >
      > command! DiffOrig vert new | set bt=nofile | r # | 0d_ | diffthis |
      > wincmd p | diffthis
      >
      > So
      > (1) you puth the command above in your vimrc
      > (2) When you want to see diffs with original (unsaved) file, you do
      > :DiffOrig
      >
      > If you never used vim-diff-mode, you might need to read about it first,
      > or try it in separate window (vimdiff oldfile newfile)
      >
      > Yakov
      >
    Your message has been successfully submitted and would be delivered to recipients shortly.