Vim RecallEnglish

逐一對引數清單中的檔案執行指令

:argdo

範例

一般模式 0 / 3
alpha one
alpha two
alpha three
游標位於第 1 行,第 1 欄

逐一對引數清單中的檔案執行指令。

視窗

視窗 1 · alpha.txt 使用中
80 欄 × 23 行

緩衝區

2 · alpha.txt 使用中
已載入 · 已列出 · alpha one ↩ alpha two
3 · beta.txt
未載入 · 已列出
4 · gamma.txt
未載入 · 已列出

分頁

分頁 1 使用中
alpha.txt

引數

1 · alpha.txt 使用中
全域引數清單
2 · beta.txt
全域引數清單
3 · gamma.txt
全域引數清單
操作前後
操作前
alpha one
alpha two
alpha three
游標位於第 1 行,第 1 欄

視窗

視窗 1 · alpha.txt 使用中
80 欄 × 23 行

緩衝區

2 · alpha.txt 使用中
已載入 · 已列出 · alpha one ↩ alpha two
3 · beta.txt
未載入 · 已列出
4 · gamma.txt
未載入 · 已列出

分頁

分頁 1 使用中
alpha.txt

引數

1 · alpha.txt 使用中
全域引數清單
2 · beta.txt
全域引數清單
3 · gamma.txt
全域引數清單
操作後
gamma one;
gamma two
gamma three
游標位於第 1 行,第 10 欄

視窗

視窗 1 · gamma.txt 使用中
80 欄 × 23 行

緩衝區

2 · alpha.txt
已載入 · 已列出 · 已修改 · alpha one; ↩ alpha two
3 · beta.txt
已載入 · 已列出 · 已修改 · 替代緩衝區 · beta one; ↩ beta two
4 · gamma.txt 使用中
已載入 · 已列出 · 已修改 · gamma one; ↩ gamma two

分頁

分頁 1 使用中
gamma.txt

引數

1 · alpha.txt
全域引數清單
2 · beta.txt
全域引數清單
3 · gamma.txt 使用中
全域引數清單

從一般模式開始。引數清單裡只有指定的暫存檔案。面板分別列出這份清單和緩衝區,並標示目前使用的是第幾個引數。此例使用 80 欄、24 行的終端機,並設定 cmdheight=1 和 nomore。第一次按 Enter 會執行指令。顯示輸出後,Vim 會提示再按一次 Enter。再按一次 Enter,回到一般模式。

詳細說明與 Vim 文件

範例已在 Vim 重播驗證

本例輸入 :argdo normal! A; 後按 Enter。