A
A
Avega2013-03-27 10:19:46
vim
Avega, 2013-03-27 10:19:46

Dual pane display of "cvs diff" output in vim?

Good day.
I wanted to somehow ennoble the output of the "cvs diff" command. This command produces a unified diff of all project files (example one and two ).
The question arose, is it possible to feed this sheet to vim in such a way that he would break it into two panels for me? Those. like a standard vimdiff of two files.
The problem is complicated by the fact that I have an ancient vim 6.3.71, a no less ancient system based on RedHat 6 in a rather truncated form. Those. all sorts of wonderful things like Meld'a are not collected there.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
Y
YourChief, 2013-03-27
@Avega

hmmm...maybe I don't understand something, but how about:

 vim -O <(grep -v '^>' example.diff) <(grep -v '^<' example.diff) 

A
Avega, 2013-03-28
@Avega

So far, I have made such a clumsy decision for myself:
cvs diff -u > ~diff.tmp; vim -O <(sed -e 's/^+\(.*\)//g' ~diff.tmp) <(sed -e 's/^-\(.*\)//g' ~diff.tmp) +"set scb | wincmd w | set scb"
I would be glad for criticism.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question