開啟終端機視窗
:terminal
範例
一般模式 0 / 2命令列模式 1 / 2終端機工作模式 2 / 2notes游標位於第 1 行,第 1 欄notes游標位於第 1 行,第 1 欄游標位於第 1 行,第 1 欄開啟終端機視窗。
視窗
- notes.txt 使用中
notes
工作
- cat
尚未啟動
指令已輸入。按 Enter 執行。
視窗
- notes.txt 使用中
notes
工作
- cat
尚未啟動
開啟終端視窗,並執行 /bin/cat 作為其工作。目前活動的終端為空,並等待輸入。notes.txt 仍保留在另一個視窗中。
視窗
- /bin/cat [Terminal] 使用中
終端機目前空白;cat 正在等待輸入。
- notes.txt
notes
工作
- /bin/cat
執行中,使用終端機輸入與輸出- 輸入目標
輸入傳給終端機工作,不會插入 Vim 緩衝區。
操作前後
notes游標位於第 1 行,第 1 欄視窗
- notes.txt 使用中
notes
工作
- cat
尚未啟動
游標位於第 1 行,第 1 欄視窗
- /bin/cat [Terminal] 使用中
終端機目前空白;cat 正在等待輸入。
- notes.txt
notes
工作
- /bin/cat
執行中,使用終端機輸入與輸出- 輸入目標
輸入傳給終端機工作,不會插入 Vim 緩衝區。
主題::terminal。依 Vim 文件示範。此例假設具備 +terminal 與 +job 支援、Unix /bin/cat 可用、splitbelow 未設定。應用程式未實際啟動任何工作。未用 Vim 重播驗證。開啟終端視窗,並執行 /bin/cat 作為其工作。目前活動的終端為空,並等待輸入。notes.txt 仍保留在另一個視窗中。
詳細說明與 Vim 文件
內嵌終端機需要 Vim 支援 +terminal、+job 和 +channel。本例輸入 :terminal /bin/cat 後按 Enter。可簡寫為 :ter。