Thank you very much Yakov!
It worked perfectly!

On 10/2/06, Yakov Lerner <[EMAIL PROTECTED]> wrote:
On 10/2/06, Gregory SACRE <[EMAIL PROTECTED]> 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

Reply via email to