This kind of diff can be done in Vimscript, see attached plugin! It's
simple yet, for example 'diffopt' is ignored.
Usage:
:SetLineByLineDiff
enable line-by-line diff (set 'diffexpr' to a different value)
:SetLineByLineDiff!
disable, set 'diffexpr' back to the default
--
Andy
You should drop diffbyline.vim into your plugin folder to make the
DiffLineByLine() function available after startup.
Within Vim, execute
:SetLineByLineDiff
which is a shortcut for :set diffexpr=DiffLineByLine()
but more verbose (and easier to type, as command names can be completed
with <Tab>).
The next diffing procedure will then use the new diff method, for
example:
:diffthis
:wincmd w
:diffthis
or
:diffsplit {filename}
Using vimdiff:
vimdiff +SetLineByLineDiff {file1} {file2}
vim -d +SetLineByLineDiff {file1} {file2}
SetLineByLineDiff is a little too verbose here ...
With appropriate quoting you can use (example for Windows):
vimdiff +"set diffexpr=DiffLineByLine()" {file1} {file2}
--
Andy