Skip to content
shinokada edited this page Feb 28, 2014 · 1 revision

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
Clone this wiki locally