diff options
Diffstat (limited to 'src/nvim/main.c')
-rw-r--r-- | src/nvim/main.c | 22 |
1 files changed, 6 insertions, 16 deletions
diff --git a/src/nvim/main.c b/src/nvim/main.c index 6ab7391b05..83e56c3066 100644 --- a/src/nvim/main.c +++ b/src/nvim/main.c @@ -2185,43 +2185,33 @@ static void usage(void) signal_stop(); // kill us with CTRL-C here, if you like os_msg(_("Usage:\n")); - os_msg(_(" nvim [options] [file ...] Edit file(s)\n")); - os_msg(_(" nvim [options] -t <tag> Edit file where tag is defined\n")); - os_msg(_(" nvim [options] -q [errorfile] Edit file with first error\n")); + os_msg(_(" nvim [options] [file ...]\n")); os_msg(_("\nOptions:\n")); - os_msg(_(" -- Only file names after this\n")); - os_msg(_(" + Start at end of file\n")); os_msg(_(" --cmd <cmd> Execute <cmd> before any config\n")); os_msg(_(" +<cmd>, -c <cmd> Execute <cmd> after config and first file\n")); os_msg(_(" -l <script> [args...] Execute Lua <script> (with optional args)\n")); + os_msg(_(" -S <session> Source <session> after loading the first file\n")); + os_msg(_(" -s <scriptin> Read Normal mode commands from <scriptin>\n")); + os_msg(_(" -u <config> Use this config file\n")); os_msg("\n"); - os_msg(_(" -b Binary mode\n")); os_msg(_(" -d Diff mode\n")); - os_msg(_(" -e, -E Ex mode\n")); os_msg(_(" -es, -Es Silent (batch) mode\n")); os_msg(_(" -h, --help Print this help message\n")); os_msg(_(" -i <shada> Use this shada file\n")); - os_msg(_(" -m Modifications (writing files) not allowed\n")); - os_msg(_(" -M Modifications in text not allowed\n")); os_msg(_(" -n No swap file, use memory only\n")); os_msg(_(" -o[N] Open N windows (default: one per file)\n")); os_msg(_(" -O[N] Open N vertical windows (default: one per file)\n")); os_msg(_(" -p[N] Open N tab pages (default: one per file)\n")); - os_msg(_(" -r, -L List swap files\n")); - os_msg(_(" -r <file> Recover edit state for this file\n")); - os_msg(_(" -R Read-only mode\n")); - os_msg(_(" -S <session> Source <session> after loading the first file\n")); - os_msg(_(" -s <scriptin> Read Normal mode commands from <scriptin>\n")); - os_msg(_(" -u <config> Use this config file\n")); + os_msg(_(" -R Read-only (view) mode\n")); os_msg(_(" -v, --version Print version information\n")); os_msg(_(" -V[N][file] Verbose [level][file]\n")); os_msg("\n"); + os_msg(_(" -- Only file names after this\n")); os_msg(_(" --api-info Write msgpack-encoded API metadata to stdout\n")); os_msg(_(" --clean \"Factory defaults\" (skip user config and plugins, shada)\n")); os_msg(_(" --embed Use stdin/stdout as a msgpack-rpc channel\n")); os_msg(_(" --headless Don't start a user interface\n")); os_msg(_(" --listen <address> Serve RPC API from this address\n")); - os_msg(_(" --noplugin Don't load plugins\n")); os_msg(_(" --remote[-subcommand] Execute commands remotely on a server\n")); os_msg(_(" --server <address> Specify RPC server to send commands to\n")); os_msg(_(" --startuptime <file> Write startup timing messages to <file>\n")); |