7.3. Argument List - shinokada/vimnotes GitHub Wiki

Tip 37

The argument list is easily managed and can be useful for grouping together a collection of files for easy navigation.

By using :argdo we can run an Ex command on each item in the argrument list.

$ vim *.txt
# list all argument
:args

# or
vim
# open files from :args
:args index.html app.js
:args

# diiferent globs
:args *.*
:args **/*.js
:args **/*.*
:args **/*.js **/*.css

How to traverse the files in the argument list.

:next
:prev
⚠️ **GitHub.com Fallback** ⚠️