Vim can compare 2 or three file with the vimdiff feature.
We compare 2 files in this video and show they can be seen side by side or one over the other.
Once vimdiff is opened with the two files, we see all the line changes and lines added and removed between the two files.
set noscrollbind will allow that document to scroll without scrolling both documents.
To jump to the next change press ]c
To jump to the previous change press [c
To get the change from the other file to the file the cursor is in, type:
:diffGet
To put the change you are on to the other file type:
:diffput
If you make any changes, you may need to rescan for differences with:
:diffupdate
do (for diff obtain) works the same as :diffget
dp (for diff put) works the same as :diffput
See the complete Vim playlist at:
• Vim (01) - What is Vim?
See the complete Vim playlist in a single video at:
• Vim - Complete Vim Tutorial
Website link:
https://thefrugalcomputerguy.com/linu...
On this page of the site you can watch the video online Vim (43) vimdiff with a duration of hours minute second in good quality, which was uploaded by the user MichaelsTechTutorials 21 September 2019, share the link with friends and acquaintances, this video has already been watched 47,561 times on youtube and it was liked by 1 thousand viewers. Enjoy your viewing!