Home Explore Blog CI



neovim

4th chunk of `runtime/doc/starting.txt`
ff4d15392cf2687b0ab2dc5937292e71f042d531c8ee599f0000000100000fa1
	the script when called with "./" from a shell (remember to
		"chmod u+x"): >
			#!/usr/bin/env -S nvim -l
<
		Skips user |config| unless |-u| was given.
		Disables plugins unless 'loadplugins' was set.
		Disables |shada| unless |-i| was given.
		Disables swapfile (like |-n|).

							*-ll*
-ll {script} [args]
		Executes a Lua script, similarly to |-l|, but the editor is not
		initialized. This gives a Lua environment similar to a worker
		thread. See |lua-loop-threading|.

		Unlike `-l` no prior arguments are allowed.

							*-b*
-b		Binary mode.  File I/O will only recognize <NL> to separate
		lines.  The 'expandtab' option will be reset.  The 'textwidth'
		option is set to 0.  'modeline' is reset.  The 'binary' option
		is set.  This is done after reading the |vimrc| but before
		reading any file in the arglist.  See also |edit-binary|.

							*-A*
-A		Arabic mode.  Sets the 'arabic' option on.

							*-H*
-H		Hebrew mode.  Sets the 'rightleft' option on and the 'keymap'
		option to "hebrew".

							*-V* *verbose*
-V[N]		Verbose.  Sets the 'verbose' option to [N] (default: 10).
		Messages will be given for each file that is ":source"d and
		for reading or writing a ShaDa file.  Can be used to find
		out what is happening upon startup and exit.
		Example: >
			nvim -V8

-V[N]{file}
		Like -V and sets 'verbosefile' to {file} (must not start with
		a digit).  Messages are not displayed, instead they are
		written to {file}.
		Example: >
			nvim -V20vimlog
<
							*-D*
-D		Debugging.  Go to debugging mode when executing the first
		command from a script. |debug-mode|

							*-n*
-n		Disables |swap-file| by setting 'updatecount' to 0 (after
		executing any |vimrc|).  Recovery after a crash will be
		impossible.  Improves performance when working with a file on
		a very slow medium (usb drive, network share).

		Enable it again by setting 'updatecount' to some value, e.g.
		":set updatecount=100".

		To reduce accesses to the disk, don't use "-n", but set
		'updatetime' and 'updatecount' to very big numbers, and type
		":preserve" when you want to save your work.  This way you
		keep the possibility for crash recovery.

							*-o*
-o[N]		Open N windows, split horizontally.  If [N] is not given,
		one window is opened for every file given as argument.  If
		there is not enough room, only the first few files get a
		window.  If there are more windows than arguments, the last
		few windows will be editing an empty file.

							*-O*
-O[N]		Open N windows, split vertically.  Otherwise, it's like -o.
		If both the -o and the -O option are given, the last one on
		the command line determines how the windows will be split.

							*-p*
-p[N]		Open N tab pages.  If [N] is not given, one tab page is opened
		for every file given as argument.  The maximum is set with
		'tabpagemax' pages (default 50).  If there are more tab pages
		than arguments, the last few tab pages will be editing an
		empty file.  Also see |tabpage|.
							*-d*
-d		Start in |diff-mode|.

							*-u* *E282*
-u {vimrc}	The file {vimrc} is read for initializations.  Most other
		initializations are skipped; see |initialization|.

		This can be used to start Vim in a special mode, with special
		mappings and settings.  A shell alias can be used to make
		this easy to use.  For example, in a C shell descendant: >
			alias vimc 'nvim -u ~/.config/nvim/c_init.vim \!*'
<		And in a Bash shell: >
			alias vimc='nvim -u ~/.config/nvim/c_init.vim'
<		Also consider using autocommands; see |autocommand|.

		When {vimrc} is "NONE" (all uppercase), all initializations
		from files and environment variables are skipped.  Plugins and
		syntax highlighting are also skipped.

		When {vimrc} is "NORC" (all uppercase), this has the same
		effect as "NONE", but plugins and syntax highlighting are not
		skipped.

							*-i*
-i {shada}	The file {shada} is used instead of the default ShaDa
		file.  If the name "NONE" is used (all uppercase), no ShaDa
		file is read or written, even if

Title: Nvim Startup Options: Lua Execution, Modes (Binary, Arabic, Hebrew), Verbosity, Debugging, Swap Files, Windows, Tabs, Diff, Initialization, and ShaDa Files
Summary
This section continues detailing Nvim's startup options. It covers how to execute Lua scripts without editor initialization, specific modes for binary, Arabic, and Hebrew file handling, setting verbosity levels, enabling debugging, disabling swap files, opening files in multiple windows or tabs, starting in diff mode, specifying an initialization file, and using a custom ShaDa file.