vimdiff file1 file2 …혹은
vim -d file1 file2…명령으로 실행
do- Get changes from other window into the current window.
dp- Put the changes from current window into the other window.
]c- Jump to the next change.
[c- Jump to the previous change.
zo- open folded text
zc- close folded text
Ctrl W + Ctrl W- Switch to the other split window.
:diffthison each window and achieve a diff of files that were already loaded in buffers
:diffoffcan be used to turn off the diff mode.
Ctrl+Alt+Down으로 다음 차이로 이동
Ctrl+Alt+Up으로 이전 차이로 이동
nnoremap <expr> <silent> <C-A-Down> (&diff ? "]c" : ":cnext\<CR>") nnoremap <expr> <silent> <C-A-Up> (&diff ? "[c" : ":cprev\<CR>")