Making compiler tests based on compiler source code coverage
Compiler 助教課 vi 編輯器
description
Transcript of Compiler 助教課 vi 編輯器
![Page 1: Compiler 助教課 vi 編輯器](https://reader033.fdocuments.net/reader033/viewer/2022061511/56814883550346895db5976d/html5/thumbnails/1.jpg)
製作及版權所有均屬呂明達 2011
COMPILER 助教課VI編輯器
授課:呂明達
![Page 2: Compiler 助教課 vi 編輯器](https://reader033.fdocuments.net/reader033/viewer/2022061511/56814883550346895db5976d/html5/thumbnails/2.jpg)
製作及版權所有均屬呂明達 2
大綱
Linux 上的編輯器 Vi 畫面 Vi Last line 模式 Vi 編輯模式 Vi 指令模式
2011
![Page 3: Compiler 助教課 vi 編輯器](https://reader033.fdocuments.net/reader033/viewer/2022061511/56814883550346895db5976d/html5/thumbnails/3.jpg)
製作及版權所有均屬呂明達 3
Linux 上的編輯器
Vi Jed EE joe
2011
![Page 4: Compiler 助教課 vi 編輯器](https://reader033.fdocuments.net/reader033/viewer/2022061511/56814883550346895db5976d/html5/thumbnails/4.jpg)
製作及版權所有均屬呂明達 4
Vi 畫面
2011
![Page 5: Compiler 助教課 vi 編輯器](https://reader033.fdocuments.net/reader033/viewer/2022061511/56814883550346895db5976d/html5/thumbnails/5.jpg)
製作及版權所有均屬呂明達 5
Vi 畫面
2011
![Page 6: Compiler 助教課 vi 編輯器](https://reader033.fdocuments.net/reader033/viewer/2022061511/56814883550346895db5976d/html5/thumbnails/6.jpg)
製作及版權所有均屬呂明達 6
Vi 畫面
2011
![Page 7: Compiler 助教課 vi 編輯器](https://reader033.fdocuments.net/reader033/viewer/2022061511/56814883550346895db5976d/html5/thumbnails/7.jpg)
製作及版權所有均屬呂明達 7
Vi 畫面
2011
![Page 8: Compiler 助教課 vi 編輯器](https://reader033.fdocuments.net/reader033/viewer/2022061511/56814883550346895db5976d/html5/thumbnails/8.jpg)
製作及版權所有均屬呂明達 8
Vi Last line 模式
2011
![Page 9: Compiler 助教課 vi 編輯器](https://reader033.fdocuments.net/reader033/viewer/2022061511/56814883550346895db5976d/html5/thumbnails/9.jpg)
製作及版權所有均屬呂明達 9
Vi Last line 模式
2011
![Page 10: Compiler 助教課 vi 編輯器](https://reader033.fdocuments.net/reader033/viewer/2022061511/56814883550346895db5976d/html5/thumbnails/10.jpg)
製作及版權所有均屬呂明達 10
Vi Last line 模式
2011
![Page 11: Compiler 助教課 vi 編輯器](https://reader033.fdocuments.net/reader033/viewer/2022061511/56814883550346895db5976d/html5/thumbnails/11.jpg)
製作及版權所有均屬呂明達 11
Vi Last line 模式
2011
![Page 12: Compiler 助教課 vi 編輯器](https://reader033.fdocuments.net/reader033/viewer/2022061511/56814883550346895db5976d/html5/thumbnails/12.jpg)
製作及版權所有均屬呂明達 12
Vi Last line 模式
2011
![Page 13: Compiler 助教課 vi 編輯器](https://reader033.fdocuments.net/reader033/viewer/2022061511/56814883550346895db5976d/html5/thumbnails/13.jpg)
製作及版權所有均屬呂明達 13
Vi Last line 模式
2011
![Page 14: Compiler 助教課 vi 編輯器](https://reader033.fdocuments.net/reader033/viewer/2022061511/56814883550346895db5976d/html5/thumbnails/14.jpg)
製作及版權所有均屬呂明達 14
Vi Last line 模式
:n 將游標移至第 n 行 (n 為任意數字 ) :e! 放棄前面所有編輯動作,重新自 disk
中 load 目前所編輯的檔案 :set nu 在每一行前顯示行號 :set nonu不顯示行號 :r filename 自 disk 中讀取檔案
filename 加入目前游標所在列之後
2011
![Page 15: Compiler 助教課 vi 編輯器](https://reader033.fdocuments.net/reader033/viewer/2022061511/56814883550346895db5976d/html5/thumbnails/15.jpg)
製作及版權所有均屬呂明達 15
Vi Last line 模式
:w filename 將目前編輯資料存至 disk 中檔案 filename ,若 filename 不給,則存回原叫修檔名。
:wq filename 同上。存檔後離開 vi 環境。
:w! filename 強制寫檔。 :q 離開目前編輯環境。若檔案曾修改,
系統會提示 User 存檔或用 q! 離開。 :q! 強制離開 vi 環境
2011
![Page 16: Compiler 助教課 vi 編輯器](https://reader033.fdocuments.net/reader033/viewer/2022061511/56814883550346895db5976d/html5/thumbnails/16.jpg)
製作及版權所有均屬呂明達 16
Vi 編輯模式
2011
![Page 17: Compiler 助教課 vi 編輯器](https://reader033.fdocuments.net/reader033/viewer/2022061511/56814883550346895db5976d/html5/thumbnails/17.jpg)
製作及版權所有均屬呂明達 17
Vi 指令模式
重要指令 i 輸入 u 還原 d 行刪除 x 字刪除 / 字串 搜尋 n 找下一個 yy 複製 p 貼上
2011