Files
neovim/runtime/lua/vim/_meta
Sanzhar Kuandyk cf874cee33 feat(startup): provide v:argf for file arguments #35889
Problem:
- `:args` and `argv()` can change after startup.
- `v:arg` includes options/commands, not just files.
- Plugins (e.g. Oil) may rewrite directory args.

Solution:
- New read-only var `v:argf`: snapshot of file/dir args at startup.
- Unaffected by `:args` or plugins.
- Unlike `v:argv`, excludes options/commands.
- Paths are resolved to absolute paths when possible

Example:

    nvim file1.txt dir1 file2.txt
    :echo v:argf
    " ['/home/user/project/file1.txt', '/home/user/project/dir1', '/home/user/project/file2.txt']
2026-02-25 03:38:08 -05:00
..
2026-01-07 08:11:42 +08:00
2025-06-06 15:36:48 +01:00
2025-11-23 20:03:13 -05:00
2024-07-15 21:16:29 +01:00
2024-02-27 14:41:17 +00:00
2024-05-15 23:19:26 +02:00