내용으로 건너뛰기
권남
사용자 도구
로그인
사이트 도구
검색
도구
문서 보기
이전 판
역링크
최근 바뀜
미디어 관리자
사이트맵
로그인
>
최근 바뀜
미디어 관리자
사이트맵
추적:
vim:vimdiff
이 문서는 읽기 전용입니다. 원본을 볼 수는 있지만 바꿀 수는 없습니다. 문제가 있다고 생각하면 관리자에게 문의하세요.
====== vimdiff ====== * 두 파일의 다른점을 비교해가며 편집할 수 있다. * ''vimdiff file1 file2 ...'' 혹은 ''vim -d file1 file2...'' 명령으로 실행 * [[http://www.debianadmin.com/vimdiff-edit-two-or-three-versions-of-a-file-with-vim-and-show-differences.html|vimdiff – Edit two or Three versions of a file with Vim and show differences]] * [[http://technotales.wordpress.com/2009/05/17/git-diff-with-vimdiff/|Git Diff with Vimdiff]] * [[https://goodtogreate.tistory.com/entry/git-difftool-%EC%82%AC%EC%9A%A9%EB%B2%95|git difftool 사용법 vimdiff]] * [[https://www.rosipov.com/blog/use-vimdiff-as-git-mergetool/|Use vimdiff as git mergetool - Ruslan Osipov]] * [[https://gist.github.com/mattratleph/4026987|vimdiff cheat sheet]] * [[https://medium.com/usevim/git-and-vimdiff-a762d72ced86|Git and Vimdiff | by Alex R. Young | usevim | Medium]] ===== 사용법 ===== * ''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. * If you load up two files in splits (:vs or :sp), you can do '':diffthis'' on each window and achieve a diff of files that were already loaded in buffers * '':diffoff'' can be used to turn off the diff mode. ===== 설정 ===== * ''Ctrl+Alt+Down'' 으로 다음 차이로 이동 * ''Ctrl+Alt+Up'' 으로 이전 차이로 이동 <code> nnoremap <expr> <silent> <C-A-Down> (&diff ? "]c" : ":cnext\<CR>") nnoremap <expr> <silent> <C-A-Up> (&diff ? "[c" : ":cprev\<CR>") </code> * 공백 비교 피하기 <code> :set diffopt+=iwhite </code>
vim/vimdiff.txt
· 마지막으로 수정됨: 2021/02/17 23:51 저자
kwon37xi
문서 도구
문서 보기
이전 판
역링크
맨 위로