vim:cheatsheet:diff
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
vim:cheatsheet:diff [2021/02/16 10:46] – created peter | vim:cheatsheet:diff [2021/02/16 10:49] (current) – peter | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== VIM - Cheatsheet - Diff ====== | ====== VIM - Cheatsheet - Diff ====== | ||
+ | |||
+ | < | ||
+ | zf - manually define a fold up to motion | ||
+ | zd - delete fold under the cursor | ||
+ | za - toggle fold under the cursor | ||
+ | zo - open fold under the cursor | ||
+ | zc - close fold under the cursor | ||
+ | zr - reduce (open) all folds by one level | ||
+ | zm - fold more (close) all folds by one level | ||
+ | zi - toggle folding functionality | ||
+ | |||
+ | ]c - jump to start of next change | ||
+ | [c - jump to start of previous change | ||
+ | |||
+ | do or :diffg[et] - obtain (get) difference (from other buffer) | ||
+ | dp or :diffpu[t] - put difference (to other buffer) | ||
+ | |||
+ | :diffthis - make current window part of diff | ||
+ | : | ||
+ | :diffo[ff] - switch off diff mode for current window | ||
+ | </ | ||
+ | |||
+ | <WRAP info> | ||
+ | **NOTE: | ||
+ | |||
+ | To operate on all levels, use uppercase letters (e.g. zA). | ||
+ | |||
+ | </ | ||
+ | |||
+ | |||
+ | <WRAP info> | ||
+ | **NOTE: | ||
+ | |||
+ | One can even set this as git difftool. | ||
+ | |||
+ | </ | ||
vim/cheatsheet/diff.1613472413.txt.gz · Last modified: 2021/02/16 10:46 by peter