[HINT]:vim diff can acts as code merger

12 views
Skip to first unread message

Kunal Chauhan

unread,
Jun 20, 2020, 1:45:01 PM6/20/20
to vim...@googlegroups.com
Hi Team,


1.Can vimdiff act like a code merger.
2. In vimdiff to change color so it will be well visible and is there some color code.
3 . Is there some easy method to move text from.one file to another in vimdiff



Thks
Kunal

 

Tim Chase

unread,
Jun 20, 2020, 2:28:54 PM6/20/20
to Kunal Chauhan, vim...@googlegroups.com
On 2020-06-20 23:14, Kunal Chauhan wrote:
> Hi Team,
>
>
> 1.Can vimdiff act like a code merger.

Yes. Lots of options described at

:help merge

> 2. In vimdiff to change color so it will be well visible and is
> there some color code.

The colors rely on your colorscheme. In particular, DiffAdd,
DiffDelete, DiffChange, and DiffText.

If you want to change them, you can choose a different color-scheme,
of take an existing one and customize/personalize it to meet your
desires.

> 3 . Is there some easy method to move text from.one file to another
> in vimdiff

As above, see `:help merge` for options to get/put changes between
files. But to get you started

:diffget
:diffput
do
dp

-tim



Reply all
Reply to author
Forward
0 new messages