As far as I understand the default vimdiff is doing only linewise diffs. However somtimes is useful to do word level diff, especially for text files like Markdown, LaTeX etc. There are some tools like wdiff or dwdiff which do the diff in word level. Is it possible to use them in vim to compare side-by-side two text files?
One solution, as suggested by muru (thanks), is to use the diffchar.vim plugin and setting the let g:DiffUnit="Word1"
. This plugin should be used in the standard vimdiff
session.
let g:DiffUnit="Word1"
and it does word-level highlighting. – muru Jun 15 '15 at 17:53