vimdiff
Open up two or more files in vim and show the differences between them. See alsovim,vimtutor,nvim. More information: https://www.vim.org.
-
Open two files and show the differences:
vimdiff {{file1}} {{file2}} -
Move the cursor to the window on the left|right:
Ctrl + w {{h|l}} -
Jump to the previous difference:
[c -
Jump to the next difference:
]c -
Copy the highlighted difference from the other window to the current window:
do -
Copy the highlighted difference from the current window to the other window:
dp -
Update all highlights and folds:
:diffupdate -
Toggle the highlighted code fold:
za
License and Disclaimer
The content on this page is copyright © 2014—present the tldr-pages team and contributors.This page is used with permission under Creative Commons Attribution 4.0 International License.
While we do attempt to make sure content is accurate, there isn't a warranty of any kind.