1
0
mirror of https://github.com/onkelbeh/cheatsheets.git synced 2025-06-16 07:07:37 +02:00
cheatsheets/vim-diff.md
2020-07-04 23:33:09 +10:00

1.9 KiB

title category layout updated weight intro
Vimdiff Vim 2017/sheet 2018-12-06 -10 [Vim](http://www.vim.org/) is a very efficient text editor. This reference was made for Vim 8.0.

Getting started

{: .-three-column}

Navigating

{: .-prime}

Shortcut Description
]c Next difference
[c Previous difference
{: .-shortcuts}

Editing

Shortcut Description
do Diff Obtain!
Pull the changes to the current file.
dp Diff Put!
Push the changes to the other file.
--- ---
:diffupdate Re-scan the files for differences.
ZQ Quit without checking changes
{: .-shortcuts}

Folds

Shortcut Description
zo / zO Open
zc / zC Close
za / zA Toggle
--- ---
zv Open folds for this line
--- ---
zM Close all
zR Open all
--- ---
zm Fold more (foldlevel += 1)
zr Fold less (foldlevel -= 1)
--- ---
zx Update folds
{: .-shortcuts}

Also see