38
12
vimdiff
is very handy for comparing files. However, I often use it on files with long lines and relatively few differences inside the lines.
vimdiff will correctly highlight differences inside a line (whole line pink, differing characters red). In these cases, it would be nice to be able to jump to the next difference inside the line.
You can jump to the "next difference" (]c), but this will jump to the next line with a difference.
Is there a way to go to the next different character inside the current line?
I've given up on this, as it seems there's no easy way to accomplish it. Since your answer seems to do what I wanted, I'll accept it as a thanks. – sleske – 2010-12-16T12:32:18.493
2
Since then, I've put the code into this script http://code.google.com/p/lh-vim/source/browse/misc/trunk/plugin/searchfile.vim?r=320 (that does a few others things), and unfortunately, I've observed an infinite loop that occurs time to time. I will eventually fix it.
– Luc Hermitte – 2010-12-16T17:28:12.357