Is there a way to list the command line arguments showed by vim -h
or vim --help
from within Vim?
Besides :r!vim -h
which seems to be a workaround to achieve this.
From :h vim-arguments
:
*info-message*
The |--help| and |--version| arguments cause Vim to print a message and then
exit. Normally the message is sent to stdout, thus can be redirected to a
file with: >
vim --help >file
From inside Vim: >
:read !vim --help
In :h vim-arguments
is a detailed explanation of each argument. Although not in the same abbreviated formatting as in the command line helper.
-h
display. I'm making a kind of cheatsheet and every now and then I'm in the need of taking a look at that information.:r!vim -h
is fine but I'm curious about other way to do it