argsコマンドで複数ファイルを一括置換argsコマンドで複数ファイルを一括置換:args **/*.txt (1) 階層下のすべての.txtファイルをarglistに追加 :args (2) arglistを確認 :argdo %s/foo/bar/g | update (3) arglistのファイルに対して置換と保存コマンド(%s/foo/bar/g | update)を実行 arglistのファイルの変更を保存:args **/*.txt (1) 階層下のすべての.txtファイルをarglistに追加 :argdo %s/foo/bar/g (2) arglistのファイルに対して置換コマンドを実行(保存はしない) :argdo update (3) 2の置換の変更を保存する arglistのファイルの変更をundoする:args **/*.txt (1) 階層下のすべての.txtファイルをarglistに追加 :argdo %s/foo/bar/g (2) arglistのファイルに対して置換コマンドを実行 :argdo undo (3) 2の置換の変更をundoする arglistを確認:args arglistにファイルを追加:argadd 1.txt arglistからファイルを削除:argdelete 2.txt arglistからすべてのファイルを削除:argdelete * 参考 |
|