As of May 31, 2023, we have updated our Code of Conduct.

Questions tagged [argument-list]

Questions about the usage and the manipulation of the argument list. The argument list is the list of file names you give when starting Vim.

4 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
1 vote
0 answers

Macro doesn't run properly when executed with :bufdo or :argdo

I have a macro that looks like: :reg a Type Name Content c "a /^where^MkV%yGo^M-- Some typing...:^[pVG:!/tmp/^M It works fine from any starting position in the file when I replay it ...
jberryman's user avatar
  • 133
0 votes
0 answers

How do I pass multiple optional arguments from custom command to function?

Given a function with two optional arguments fun s:foo(one = v:false, two = v:false) echom '<' . a:one . ',' . a:two . '>' endf and a custom command calling it command! -nargs=* Foo call s:...
Enlico's user avatar
  • 2,054
0 votes
0 answers

How to deal with the argument which contains whitespace in command?

A function and it's command format: function! Rep(raw, dest, ...) range echo a:firstline echo a:lastline echo a:raw echo a:dest endfunction command! -range -nargs=+ Rep <line1>,&...
newview's user avatar
  • 291
0 votes
0 answers

How can I see what arguments vim was invoked with?

Is it possible to see what arguments vim was invoked with when it was run? vim -O foo bar To show -O foo bar, but especially if there are configurations set like -Z?
Evan Carroll's user avatar
  • 1,016