Wiki

by yszheda

View project onGitHub

Tip 37: Group Buffers into a Collection with the Argument List

Return to the top: <<Practical Vim>>

Populate the Argument List

:args {argslist}: set the contents of the argument list

References:

# If you open the file in vim,
# then you can \"ayy@a the next line to execute the vim command: 
:h :args_f

Specify Files by Name

Specify Files by Glob

  • *: match zero or more characters, but only in the scope of the specified directory

References:

# If you open the file in vim,
# then you can \"ayy@a the next line to execute the vim command: 
:h wildcard
  • **: match zero or more characters, and it can recurse downward into directories below the specified directory

References:

# If you open the file in vim,
# then you can \"ayy@a the next line to execute the vim command: 
:h starstar-wildcard

Specify Files by Backtick Expansion

:args {cmd}

References:

# If you open the file in vim,
# then you can \"ayy@a the next line to execute the vim command: 
:h backstick-expansion

Use the Argument List