逐一對引數清單中的檔案執行指令
:argdo
範例
一般模式 0 / 3命令列模式 1 / 3等待按 Enter 繼續 2 / 3一般模式 3 / 3alpha one
alpha two
alpha three游標位於第 1 行,第 1 欄alpha one
alpha two
alpha three游標位於第 1 行,第 1 欄gamma one;
gamma two
gamma three游標位於第 1 行,第 10 欄gamma one;
gamma two
gamma three游標位於第 1 行,第 10 欄逐一對引數清單中的檔案執行指令。
視窗
- 視窗 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
全域引數清單
指令已輸入。按 Enter 執行。
視窗
- 視窗 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
全域引數清單
已顯示指令輸出,按 Enter 繼續
視窗
- 視窗 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 使用中
全域引數清單
已確認輸出,回到一般模式
視窗
- 視窗 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 使用中
全域引數清單
操作前後
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,回到一般模式。