[root@xuexiji ~]# echo 123 >a.txt
[root@xuexiji ~]# echo 1234 >b.txt
[root@xuexiji ~]# diff a.txt b.txt
1c1
< 123 --- > 1234
[root@xuexiji ~]# vimdiff a.txt b.txt 列表
2 files to edit
[root@xuexiji ~]# echo 123 >a.txt
[root@xuexiji ~]# echo 1234 >b.txt
[root@xuexiji ~]# diff a.txt b.txt
1c1
< 123 --- > 1234
[root@xuexiji ~]# vimdiff a.txt b.txt 列表
2 files to edit