On 07/02/09 15:17, dIna wrote:
> Hi,
> I usually use the command diffsplit.
> Then I would like to see just the new lines, or just the changed ones,
> etc...
> I know diffs are highlighted with these groups:|hl-DiffAdd|   DiffAdd,|
> hl-DiffChange|        DiffChange, etc...
> The question is: there is a way to us it al a pattern in the global
> command?
> I'm searching something like :g!/[DiffAdd]/d
> bue this is not the right way of course :)
>
> Today I do this adding file1 in file2 (:w file2), then sorting (:sort)
> and then using the external uniq command (:!uniq -u %)... there is
> something better?

You can use patterns in some of the ":syntax" statements defining which 
part of the text will get a specific highlight, but IIUC it doesn't work 
the other way round: Vim regular expressions act only on the bare text, 
regardless of any superimposed syntax or other highlighting.


Best regards,
Tony.
-- 
The buffalo isn't as dangerous as everyone makes him out to be.
Statistics prove that in the United States more Americans are killed in
automobile accidents than are killed by buffalo.
                -- Art Buchwald

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to