On 2011-03-23, Malte Forkel wrote:

> As far as vim is concerned, I would like to find out two things: Is
> there any way to suppress the "missing lines" displayed in the diff
> view? And is it possible not to highlight the "changed" lines?

If you suppress the display of the missing lines by removing
"filler" from 'diffopts', then the two diff windows will no longer
track.  You can do a number of things to suppress the coloring of
those lines, though.

First off, I think you can use the 'highlight' option to change the
way various diff elements are highlighted.  I've never used it, so
I'll leave it to you to experiment with that if you like.

You can use the 'fillchars' option to change the hyphens used to
indicate missing lines, e.g.,

    :set fillchars+=diff:\ 

will replace the hyphens with spaces, where that backslash is
followed by a single space.

You could change the colors used by the highlight groups used to
highlight the missing lines (DiffDelete group) and the changed lines
(DiffChange and DiffText groups).  For example, if you are using a
color terminal with a black background and you haven't specified a
Normal highlight group, you could use

    :hi DiffDelete ctermfg=black ctermfg=black

Of course, if you used 'fillchars' to eliminate the hyphens, you
won't need to set ctermfg, and vice versa.

Similarly, you can change the colors used by the DiffChange and
DiffText groups to make those regions appear the same as your normal
text, too.

That should give you some ideas to play with anyway.

Regards,
Gary

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