Am 13.01.2012 um 19:13 schrieb Tim Chase:

> I agree that word-level diffs in Vim would be nice.  For my purposes, I tend 
> to either
> 
> 1) not insert hard line-breaks in my text, so that it's one whole line (which 
> Vim correctly diffs), or

This is not a good option, as it is hard to move around with the cursor keys 
"hjkl". Furthermore, it takes an additional step to remove hard line breaks 
coming in from others.

Hard line breaks usually would not be an issue if nobody starts reformatting 
paragraphs, which could easily the case.

> 2) temporarily issue
> 
>  :%s/\W\+/\r/g
>  :v/\w/d
> 
> in both windows to put EVERY word on its own line (including markup), and 
> then diff the results of that.  Usually it's informative.  I then just undo 
> in both windows and have my original documents back.

Undo is not an option if I start merging or modifying in diff mode.

Unfortunately, vim does not seem to be a good solution for word-granularity 
diffing. *sigh*

Anyway, thanks for your feedback.

Best,
Claus

-- 
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

Reply via email to