> Do I need open two files in vim or use vimdiff command?
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
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
No comments:
Post a Comment