1 | # vimdiff FILE_LEFT FILE_RIGHT |
1 | # vim -d FILE_LEFT FILE_RIGHT |
1 | # vim FILE_LEFT |
1 | :vertical diffsplit FILE_RIGHT |
1 | :set noscrollbind |
1 |
1 |
1 | dp (diff "put") |
1 | do (diff "get",之所以不用dg,是因为dg已经被另一个命令占用了) |
1 | Ctrl-w, w |
1 | :diffupdate |
1 | <ESC>, u |
1 | :qa (quit all) |
1 | :wa (write all) |
1 | :wqa (write, then quit all) |
1 | :qa! (force to quit all) |
1 | :set diffopt=context:3 |
1 | zo (folding open,之所以用z这个字母,是因为它看上去比较像折叠着的纸) |
1 | zc (folding close) |
欢迎光临 电子技术论坛_中国专业的电子工程师学习交流社区-中电网技术论坛 (http://bbs.eccn.com/) | Powered by Discuz! 7.0.0 |