When I was comparing two files with vimdiff in my cygwin,
vimdiff a.c b.c
all lines were folded (as below)
Then I used
zR to open all folders, but no difference was showed.
Another weird thing here is, when I start to add a new line (by BUTTON o), it start to show difference:
I found that my
vimdiff is actually linking to
gvim, no sure if this is the problem?
$ type diff diff is /cygdrive/c/Program Files (x86)/Vim/vim72/diff $ type vimdiff vimdiff is /usr/bin/vimdiff $ ll /usr/bin/vimdiff lrwxrwxrwx 1 dhuang7 Domain Users 25 Jul 27 16:35 /usr/bin/vimdiff -> /etc/alternatives/vimdiff $ ll /etc/alternatives/vimdiff lrwxrwxrwx 1 dhuang7 Domain Users 17 Jul 27 16:35 /etc/alternatives/vimdiff -> /usr/bin/gvim.exe $ ll /usr/bin/gvim.exe -rwxr-xr-x 1 dhuang7 Domain Users 1801245 Jun 28 12:39 /usr/bin/gvim.exe
Btw there is no
.vimrc when this was running. And I had tried to add
set diffopt=filler,context:50 in to my
.vimrc but still the same.
:messages after vimdiff starting but no error was seen:
"a.c" 7L, 74C "b.c" 6L, 59C