From bf6de51f55c1b812342c7d4e88c65a7cae7fe97f Mon Sep 17 00:00:00 2001 From: Christian Clason Date: Wed, 14 Sep 2022 11:11:17 +0200 Subject: fix(help): add `--clean` to `-h` (#20171) update man file to match --- src/man/nvim.1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/man') diff --git a/src/man/nvim.1 b/src/man/nvim.1 index 9f35014ee8..457d785365 100644 --- a/src/man/nvim.1 +++ b/src/man/nvim.1 @@ -200,7 +200,8 @@ Skip loading plugins. Implied by .Cm -u NONE . .It Fl -clean -Mimic a fresh install of Nvim. Skip loading non-builtin plugins and shada (viminfo) file. +Start Nvim with "factory defaults" (no user config and plugins, no shada). +.Ic ":help --clean" .It Fl o Ns Op Ar N Open .Ar N -- cgit From 45549f031ee52a01601c33acc411f3111cfc4e95 Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Sun, 1 Jan 2023 03:14:13 +0100 Subject: feat(lua): send "--" literally to Lua "-l" script Problem: When "-l" is followed by "--", we stop sending args to the Lua script and treat "--" in the usual way. This was for flexibility but didn't have a strong use-case, and has these problems: - prevents Lua "-l" scripts from handling "--" in their own way. - complicates the startup logic (must call nlua_init before command_line_scan) Solution: Don't treat "--" specially if it follows "-l". --- src/man/nvim.1 | 25 +++++++++++++++++++------ 1 file changed, 19 insertions(+), 6 deletions(-) (limited to 'src/man') diff --git a/src/man/nvim.1 b/src/man/nvim.1 index 457d785365..c32bdeadc6 100644 --- a/src/man/nvim.1 +++ b/src/man/nvim.1 @@ -122,9 +122,6 @@ modifications. .It Fl b Binary mode. .Ic ":help edit-binary" -.It Fl l -Lisp mode. -Sets the 'lisp' and 'showmatch' options. .It Fl A Arabic mode. Sets the 'arabic' option. @@ -144,7 +141,7 @@ is specified, append messages to instead of printing them. .Ic ":help 'verbose'" .It Fl D -Debug mode for VimL (Vim script). +Vimscript debug mode. Started when executing the first command from a script. :help debug-mode .It Fl n @@ -268,10 +265,26 @@ but execute before processing any vimrc. Up to 10 instances of these can be used independently from instances of .Fl c . +.It Fl l Ar script Op Ar args +Execute Lua +.Ar script +with optional +.Op Ar args +after processing any preceding Nvim startup arguments. +All +.Op Ar args +are treated as script arguments and are passed literally to Lua, that is, +.Fl l +stops processing of Nvim arguments. +.Ic ":help -l" .It Fl S Op Ar session -Source +Execute +.Ar session +after the first file argument has been read. If .Ar session -after the first file argument has been read. +filename ends with +.Pa .lua +it is executed as Lua instead of Vimscript. Equivalent to .Cm -c \(dqsource session\(dq . .Ar session -- cgit