I have the file1.txt
with this content
Once upon a time, there was a girl named Persephone.
She had black hair.
She loved her mother more than anything.
She liked to sit outside in the sunshine with her cat, Daisy.
She dreamed of being a painter when she grew up.
And the file2.txt
with this content
Once upon a time, there was a girl named Persephone.
She had red hair.
She loved chocolate chip cookies more than anything.
She liked to sit outside in the sunshine with her cat, Daisy.
She would look up into the clouds and dream of being a world-famous baker.
So, I generated a patch file with diff -u file1.txt file2.txt > file_unified.patch
, which resulted on
--- file1 2021-03-16 23:26:09.702013804 +0000
+++ file2 2021-03-16 23:26:09.702361860 +0000
@@ -1,5 +1,5 @@
Once upon a time, there was a girl named Persephone.
-She had black hair.
-She loved her mother more than anything.
+She had red hair.
+She loved chocolate chip cookies more than anything.
She liked to sit outside in the sunshine with her cat, Daisy.
-She dreamed of being a painter when she grew up.
\ No newline at end of file
+She would look up into the clouds and dream of being a world-famous baker.
\ No newline at end of file
I know I can open two different files by using vim -Od file1 file2
, but by chance, is there any way of opening a single patch file as the file_unified.patch
and get the vim to open it as if it was two different files (as I would get if I do vim -Od file1 file2
)?