1

vimdiff file1 file2

file2 content which is not present in file1 has to be written in new file, file3.

Is there any options for vimdiff to get this difference.

user2380503
  • 21
  • 2
  • 3

2 Answers2

0

within vimdiff you have the option :TOhtml to save the outpout as html.

Maybe you can use sdiff and colordiff instead

sdiff file1 file2 | colordiff
deagh
  • 2,647
  • 1
  • 30
  • 29
0

You can sort files with sort and then apply comm

Alexander Lobov
  • 386
  • 2
  • 11