1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2024-10-30 22:38:23 +01:00
tldr/pages/common/vimdiff.md
2017-05-14 21:27:16 +01:00

479 B

vimdiff

Open up to four files in vim and show the differences between them. See vim documentation for working with files and navigating within a window.

  • Open two files and show the differences (up to four files can be compared):

vimdiff {{file1}} {{file2}}

  • Open two files using a horizontal window split instead of the default vertical split:

vimdiff -o {{file1}} {{file2}}

  • Move the cursor to the window on the left|right|up|down:

Ctrl + w {{h|l|k|j}}