Vim RecallEnglish

開啟終端機視窗

:terminal

範例

一般模式 0 / 2
notes
游標位於第 1 行,第 1 欄

開啟終端機視窗。

視窗

notes.txt 使用中
notes

工作

cat
尚未啟動
操作前後
操作前
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。