0

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?

  • 3
    According to this SO question your best bet might be to get the command used to start Vim at the OS level and to parse this data. I don't remember the feature being implemented natively since 2012 when the answer were written but maybe that changed. – statox Oct 12 '18 at 12:11
  • I confess I’m almost surprised vim doesn’t expose a readonly v:flags or v:argv or something like that – D. Ben Knoble Oct 12 '18 at 17:06
  • 1
    Unfortunately, this is not possible. On Unix like operating systems, you might get around by parsing /proc/*/cmdline, e.g. :sp /proc/'.getpid().'/cmdline' – Christian Brabandt Oct 13 '18 at 9:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.