mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-08-10 19:55:42 +02:00
vimdiff: add page (#1373)
This commit is contained in:
parent
550ede5cfb
commit
1ceb440ea4
1 changed files with 16 additions and 0 deletions
16
pages/common/vimdiff.md
Normal file
16
pages/common/vimdiff.md
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
# 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}}`
|
Loading…
Add table
Reference in a new issue