Hi,
when trying to diff two files, I get "E97: Cannot create diffs". It
seems that the 'diffexpr' function does not get called.
I have two user accounts A and B, and a single .vimrc in the A
account. The .vimrc sets [set diffexpr=MyDiff2()] and defines the
function. The diffing works in the A account, but not in the B
account.
I have now modified MyDiff() to prompt me, so I can see it's been
called:
function! MyDiff2()
call input("MyDiff2 called")
endfunction
In both accounts, I see the following:
:set diffexpr?
diffexpr=MyDiff2()
:call MyDiff2()
MyDiff2 called
(I press <CR>)
But the diffing is not the same:
account A:
:windo:difft
MyDiff2 called
(I press <CR>)
E97: Cannot create diffs
(because MyDiff2() does not return "ed" style diffs)
account B:
:windo:difft
E97: Cannot create diffs
(MyDiff2() has not been called!)
Do you have any idea how I can find out more? I have tried verbose=15,
but that did not reveal much.
Thanks,
Sam
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---