vimdiff is equivalent to vim -d
.
It’s easiest way to start editing diff mode with vim.
Basic usage
vimdiff file1 file2
# equals to
vim -d file1 file2
Cheat sheet
# remove leftover spacing issue
:diffupdate
# next / previous difference
]c :
[c :
# diff obtain
do
# diff put
dp
# open/close folded txt
zo
zc
# avoid whitespace comparision
:set diffopt+=iwhite
'tools > vim' 카테고리의 다른 글
VIM: case sensitive / insensitive when searching (0) | 2018.11.17 |
---|---|
Eliminating vim ESC key delay (0) | 2018.10.14 |
Vim : macro with vim - replay, multiple times (0) | 2018.06.14 |
Vim : ctrlp.vim open with split buffer (and other ctrlp command) (0) | 2018.05.17 |
Vim : using fzf in vim - fzf.vim (0) | 2018.05.16 |