歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
您现在的位置: Linux教程網 >> UnixLinux >  >> Linux基礎 >> 關於Linux

linux(debian)下的vim diff時報錯E97解決

linux(debian)下的vim diff時報錯E97解決   1:在用vim比對兩個文件時,發現報錯了.我用的debian stable,vim是aptitude 過來的vim7.2  www.2cto.com       2:於是跟蹤下diff  www.2cto.com   [html]  root@host:/usr/share/vim/vim72# type diff   diff is /usr/bin/diff   root@host:/usr/share/vim/vim72# type vimdiff   vimdiff is /usr/bin/vimdiff   root@host:/usr/share/vim/vim72# ll /usr/bin/vimdiff   lrwxrwxrwx 1 root root 25 [2012-08-06  3:27] /usr/bin/vimdiff -> /etc/alternatives/vimdiff*   root@host:/usr/share/vim/vim72# ll /etc/alternatives/vimdiff    lrwxrwxrwx 1 root root 16 [2012-08-06  3:27] /etc/alternatives/vimdiff -> /usr/bin/vim.gtk*   root@host:/usr/share/vim/vim72#      3:執行下 隨便建2個文件類似的內容.有細小區別的. [python]  #echo '111 222 333'>1.txt   #echo '111 222 333'>>1.txt   #echo '111 222 333 444'>>1.txt   #cp 1.txt 2.txt   #echo '111 222 333 44455'>>2.txt   #diff 1.txt 2.txt    正常diff #vimdiff 1.txt 2.txt 報錯 [html]  /bin/bash: /usr/share/vim/vim72diff No Such file or directory     這裡就簡單了 [html]  #ln -s /usr/bin/diff /usr/share/vim/vim72diff   要是編譯的7.3的.類似換成vim73diff就行了.路徑看你編譯的位置 4:diff成功(我改了1.txt的第二行內容)  
Copyright © Linux教程網 All Rights Reserved