mirror of
https://github.com/neovim/neovim
synced 2025-07-15 16:51:49 +00:00
docs(man): fix mandoc warnings, prettify #33484
Problem: mandoc warnings: $ cd src/man $ mandoc -Tlint -Wall nvim.1 mandoc: nvim.1:83:95: STYLE: input text line longer than 80 bytes: Remaining arguments ... mandoc: nvim.1:251:8: WARNING: undefined escape, printing literally: \+ mandoc: nvim.1:283:46: WARNING: new sentence, new line mandoc: nvim.1:330:115: STYLE: input text line longer than 80 bytes: When supplied with -... mandoc: nvim.1:44:2: WARNING: skipping paragraph macro: Pp before Bl mandoc: nvim.1:114:7: STYLE: no blank before trailing delimiter: Ic :w! mandoc: nvim.1:313:12: STYLE: no blank before trailing delimiter: Ic :source! Solution: - wrap text lines (80 at maximum) - new sentence, new line - fix inconsistency in macro usage see - mandoc_char(7) - mandoc_man(7) - mandoc_mdoc(7) Co-authored-by: Eisuke Kawashima <e-kwsm@users.noreply.github.com>
This commit is contained in:
@ -30,18 +30,17 @@ Commands in
|
|||||||
.Nm
|
.Nm
|
||||||
begin with colon
|
begin with colon
|
||||||
.Pq Sq \&: .
|
.Pq Sq \&: .
|
||||||
Type ":help subject" to get help on a specific subject.
|
Type \(lq:help subject\(rq to get help on a specific subject.
|
||||||
Use <Tab> and CTRL-D to complete subjects (":help cmdline\-completion").
|
Use <Tab> and CTRL-D to complete subjects (\(lq:help cmdline-completion\(rq).
|
||||||
.Pp
|
.Pp
|
||||||
The "quickref" help section is a condensed reference of editor features:
|
The \(lqquickref\(rq help section is a condensed reference of editor features:
|
||||||
.Dl :help quickref
|
.Dl :help quickref
|
||||||
.Pp
|
.Pp
|
||||||
If you are new to Vim/Nvim, start with the 30-minute tutorial:
|
If you are new to Vim/Nvim, start with the 30-minute tutorial:
|
||||||
.Dl :Tutor
|
.Dl :Tutor
|
||||||
.Pp
|
.Pp
|
||||||
After installing/updating Nvim, it's a good idea to run the self-check:
|
After installing/updating Nvim, it\(aqs a good idea to run the self-check:
|
||||||
.Dl :checkhealth
|
.Dl :checkhealth
|
||||||
.Pp
|
|
||||||
.Bl -tag -width Fl
|
.Bl -tag -width Fl
|
||||||
.It Ar file ...
|
.It Ar file ...
|
||||||
File(s) to edit.
|
File(s) to edit.
|
||||||
@ -72,7 +71,7 @@ Display the first error in
|
|||||||
.Ar errorfile .
|
.Ar errorfile .
|
||||||
If
|
If
|
||||||
.Ar errorfile
|
.Ar errorfile
|
||||||
is omitted, the value of the 'errorfile' option is used (defaults to
|
is omitted, the value of the \(aqerrorfile\(aq option is used (defaults to
|
||||||
.Cm errors.err ) .
|
.Cm errors.err ) .
|
||||||
Further errors can be jumped to with the
|
Further errors can be jumped to with the
|
||||||
.Ic :cnext
|
.Ic :cnext
|
||||||
@ -80,24 +79,25 @@ command.
|
|||||||
.Ic ":help quickfix"
|
.Ic ":help quickfix"
|
||||||
.It Fl -
|
.It Fl -
|
||||||
End of options.
|
End of options.
|
||||||
Remaining arguments are treated as literal file names, including filenames starting with hyphen
|
Remaining arguments are treated as literal file names, including filenames
|
||||||
|
starting with hyphen
|
||||||
.Pq Sq - .
|
.Pq Sq - .
|
||||||
.It Fl e
|
.It Fl e
|
||||||
Ex mode, reading stdin as Ex commands.
|
Ex mode, reading stdin as Ex commands.
|
||||||
.Ic ":help Ex-mode"
|
.Ic ":help Ex-mode"
|
||||||
.It Fl E
|
.It Fl E
|
||||||
Ex mode, reading stdin as text.
|
Ex mode, reading stdin as text.
|
||||||
.Ic :help Ex-mode
|
.Ic ":help Ex-mode"
|
||||||
.It Fl es
|
.It Fl es
|
||||||
Silent (non-interactive) Ex mode, reading stdin as Ex commands.
|
Silent (non-interactive) Ex mode, reading stdin as Ex commands.
|
||||||
Useful for scripting because it does NOT start a UI, unlike
|
Useful for scripting because it does NOT start a UI, unlike
|
||||||
.Fl e .
|
.Fl e .
|
||||||
.Ic :help silent-mode
|
.Ic ":help silent-mode"
|
||||||
.It Fl \&Es
|
.It Fl \&Es
|
||||||
Silent (non-interactive) Ex mode, reading stdin as text.
|
Silent (non-interactive) Ex mode, reading stdin as text.
|
||||||
Useful for scripting because it does NOT start a UI, unlike
|
Useful for scripting because it does NOT start a UI, unlike
|
||||||
.Fl E .
|
.Fl E .
|
||||||
.Ic :help silent-mode
|
.Ic ":help silent-mode"
|
||||||
.It Fl d
|
.It Fl d
|
||||||
Diff mode.
|
Diff mode.
|
||||||
Show the difference between two to eight files, similar to
|
Show the difference between two to eight files, similar to
|
||||||
@ -105,34 +105,34 @@ Show the difference between two to eight files, similar to
|
|||||||
.Ic ":help diff"
|
.Ic ":help diff"
|
||||||
.It Fl R
|
.It Fl R
|
||||||
Read-only mode.
|
Read-only mode.
|
||||||
Sets the 'readonly' option.
|
Sets the \(aqreadonly\(aq option.
|
||||||
Implies
|
Implies
|
||||||
.Fl n .
|
.Fl n .
|
||||||
Buffers can still be edited, but cannot be written to disk if already
|
Buffers can still be edited, but cannot be written to disk if already
|
||||||
associated with a file.
|
associated with a file.
|
||||||
To overwrite a file, add an exclamation mark to the relevant Ex command, such as
|
To overwrite a file, add an exclamation mark to the relevant Ex command, such as
|
||||||
.Ic :w! .
|
.Ic :w\&! .
|
||||||
.Ic ":help 'readonly'"
|
.Ic ":help 'readonly'"
|
||||||
.It Fl m
|
.It Fl m
|
||||||
Resets the 'write' option, to disable file modifications.
|
Resets the \(aqwrite\(aq option, to disable file modifications.
|
||||||
Writing to a file is disabled, but buffers can still be modified.
|
Writing to a file is disabled, but buffers can still be modified.
|
||||||
.It Fl M
|
.It Fl M
|
||||||
Resets the 'write' and 'modifiable' options, to disable file and buffer
|
Resets the \(aqwrite\(aq and \(aqmodifiable\(aq options, to disable file and
|
||||||
modifications.
|
buffer modifications.
|
||||||
.It Fl b
|
.It Fl b
|
||||||
Binary mode.
|
Binary mode.
|
||||||
.Ic ":help edit-binary"
|
.Ic ":help edit-binary"
|
||||||
.It Fl A
|
.It Fl A
|
||||||
Arabic mode.
|
Arabic mode.
|
||||||
Sets the 'arabic' option.
|
Sets the \(aqarabic\(aq option.
|
||||||
.It Fl H
|
.It Fl H
|
||||||
Hebrew mode.
|
Hebrew mode.
|
||||||
Sets the 'hkmap' and 'rightleft' options.
|
Sets the \(aqhkmap\(aq and \(aqrightleft\(aq options.
|
||||||
.It Fl V Ns Oo Ar N Oc Ns Op Ar file
|
.It Fl V Ns Oo Ar N Oc Ns Op Ar file
|
||||||
Verbose mode.
|
Verbose mode.
|
||||||
Prints debug messages.
|
Prints debug messages.
|
||||||
.Ar N
|
.Ar N
|
||||||
is the 'verbose' level, defaults to
|
is the \(aqverbose\(aq level, defaults to
|
||||||
.Cm 10 .
|
.Cm 10 .
|
||||||
If
|
If
|
||||||
.Ar file
|
.Ar file
|
||||||
@ -143,10 +143,10 @@ instead of printing them.
|
|||||||
.It Fl D
|
.It Fl D
|
||||||
Vimscript debug mode.
|
Vimscript debug mode.
|
||||||
Started when executing the first command from a script.
|
Started when executing the first command from a script.
|
||||||
:help debug-mode
|
.Ic ":help debug-mode"
|
||||||
.It Fl n
|
.It Fl n
|
||||||
Disable the use of swap files.
|
Disable the use of swap files.
|
||||||
Sets the 'updatecount' option to
|
Sets the \(aqupdatecount\(aq option to
|
||||||
.Cm 0 .
|
.Cm 0 .
|
||||||
Can be useful for editing files on a slow medium.
|
Can be useful for editing files on a slow medium.
|
||||||
.It Fl r Op Ar file
|
.It Fl r Op Ar file
|
||||||
@ -158,7 +158,7 @@ then list swap files with recovery information.
|
|||||||
Otherwise the swap file
|
Otherwise the swap file
|
||||||
.Ar file
|
.Ar file
|
||||||
is used to recover a crashed session.
|
is used to recover a crashed session.
|
||||||
The swap file has the same name as the file it's associated with, but with
|
The swap file has the same name as the file it\(aqs associated with, but with
|
||||||
.Sq .swp
|
.Sq .swp
|
||||||
appended.
|
appended.
|
||||||
.Ic ":help recovery"
|
.Ic ":help recovery"
|
||||||
@ -193,11 +193,12 @@ is
|
|||||||
do not read or write a ShaDa file.
|
do not read or write a ShaDa file.
|
||||||
.Ic ":help shada"
|
.Ic ":help shada"
|
||||||
.It Fl -noplugin
|
.It Fl -noplugin
|
||||||
Skip loading plugins (by setting the 'noloadplugins' option).
|
Skip loading plugins (by setting the \(aqnoloadplugins\(aq option).
|
||||||
Implied by
|
Implied by
|
||||||
.Cm -u NONE .
|
.Cm -u NONE .
|
||||||
.It Fl -clean
|
.It Fl -clean
|
||||||
Start Nvim with "factory defaults" (no user config and plugins, no shada).
|
Start Nvim with \(lqfactory defaults\(rq (no user config and plugins, no
|
||||||
|
shada).
|
||||||
.Ic ":help --clean"
|
.Ic ":help --clean"
|
||||||
.It Fl o Ns Op Ar N
|
.It Fl o Ns Op Ar N
|
||||||
Open
|
Open
|
||||||
@ -248,7 +249,7 @@ and
|
|||||||
inside
|
inside
|
||||||
.Nm .
|
.Nm .
|
||||||
.Ic ":help search-pattern"
|
.Ic ":help search-pattern"
|
||||||
.It \fB\+\fR\fI\,command\/\fR , Fl c Ar command
|
.It Cm + Ns Ar command , Fl c Ar command
|
||||||
Execute
|
Execute
|
||||||
.Ar command
|
.Ar command
|
||||||
after reading the first file.
|
after reading the first file.
|
||||||
@ -280,7 +281,8 @@ stops processing of Nvim arguments.
|
|||||||
.It Fl S Op Ar session
|
.It Fl S Op Ar session
|
||||||
Execute
|
Execute
|
||||||
.Ar session
|
.Ar session
|
||||||
after the first file argument has been read. If
|
after the first file argument has been read.
|
||||||
|
If
|
||||||
.Ar session
|
.Ar session
|
||||||
filename ends with
|
filename ends with
|
||||||
.Pa .lua
|
.Pa .lua
|
||||||
@ -310,7 +312,7 @@ Append all typed characters to
|
|||||||
Can be used for creating a script to be used with
|
Can be used for creating a script to be used with
|
||||||
.Fl s
|
.Fl s
|
||||||
or
|
or
|
||||||
.Ic :source! .
|
.Ic :source\&! .
|
||||||
.It Fl W Ar scriptout
|
.It Fl W Ar scriptout
|
||||||
Like
|
Like
|
||||||
.Fl w ,
|
.Fl w ,
|
||||||
@ -324,12 +326,15 @@ Can be used to diagnose slow startup times.
|
|||||||
Dump API metadata serialized to msgpack and exit.
|
Dump API metadata serialized to msgpack and exit.
|
||||||
.It Fl -embed
|
.It Fl -embed
|
||||||
Use standard input and standard output as a msgpack-rpc channel.
|
Use standard input and standard output as a msgpack-rpc channel.
|
||||||
:help --embed
|
.Ic ":help --embed"
|
||||||
.It Fl -headless
|
.It Fl -headless
|
||||||
Do not start a UI.
|
Do not start a UI.
|
||||||
When supplied with --embed this implies that the embedding application does not intend to (immediately) start a UI.
|
When supplied with
|
||||||
Also useful for "scraping" messages in a pipe.
|
.Cm --embed
|
||||||
:help --headless
|
this implies that the embedding application does not intend to (immediately)
|
||||||
|
start a UI.
|
||||||
|
Also useful for \(lqscraping\(rq messages in a pipe.
|
||||||
|
.Ic ":help --headless"
|
||||||
.It Fl -listen Ar address
|
.It Fl -listen Ar address
|
||||||
Start RPC server on this pipe or TCP socket.
|
Start RPC server on this pipe or TCP socket.
|
||||||
.It Fl h , -help
|
.It Fl h , -help
|
||||||
@ -343,14 +348,15 @@ Print version information and exit.
|
|||||||
The name of sub-directories used within each XDG user directory.
|
The name of sub-directories used within each XDG user directory.
|
||||||
Defaults to
|
Defaults to
|
||||||
.Cm nvim .
|
.Cm nvim .
|
||||||
:help $NVIM_APPNAME
|
.Ic ":help $NVIM_APPNAME"
|
||||||
.It Ev NVIM_LOG_FILE
|
.It Ev NVIM_LOG_FILE
|
||||||
Low-level log file, usually found at ~/.local/state/nvim/log.
|
Low-level log file, usually found at
|
||||||
:help $NVIM_LOG_FILE
|
.Pa ~/.local/state/nvim/log .
|
||||||
|
.Ic ":help $NVIM_LOG_FILE"
|
||||||
.It Ev VIM
|
.It Ev VIM
|
||||||
Used to locate user files, such as init.vim.
|
Used to locate user files, such as init.vim.
|
||||||
System-dependent.
|
System-dependent.
|
||||||
:help $VIM
|
.Ic ":help $VIM"
|
||||||
.It Ev VIMRUNTIME
|
.It Ev VIMRUNTIME
|
||||||
Used to locate runtime files (documentation, syntax highlighting, etc.).
|
Used to locate runtime files (documentation, syntax highlighting, etc.).
|
||||||
.It Ev XDG_CONFIG_HOME
|
.It Ev XDG_CONFIG_HOME
|
||||||
@ -358,7 +364,7 @@ Path to the user-local configuration directory, see
|
|||||||
.Sx FILES .
|
.Sx FILES .
|
||||||
Defaults to
|
Defaults to
|
||||||
.Pa ~/.config .
|
.Pa ~/.config .
|
||||||
:help xdg
|
.Ic ":help xdg"
|
||||||
.It Ev XDG_STATE_HOME
|
.It Ev XDG_STATE_HOME
|
||||||
Like
|
Like
|
||||||
.Ev XDG_CONFIG_HOME ,
|
.Ev XDG_CONFIG_HOME ,
|
||||||
@ -366,7 +372,7 @@ but used to store data not generally edited by the user,
|
|||||||
namely swap, backup, and ShaDa files.
|
namely swap, backup, and ShaDa files.
|
||||||
Defaults to
|
Defaults to
|
||||||
.Pa ~/.local/state .
|
.Pa ~/.local/state .
|
||||||
:help xdg
|
.Ic ":help xdg"
|
||||||
.It Ev XDG_DATA_HOME
|
.It Ev XDG_DATA_HOME
|
||||||
Like
|
Like
|
||||||
.Ev XDG_CONFIG_HOME ,
|
.Ev XDG_CONFIG_HOME ,
|
||||||
@ -374,15 +380,16 @@ but used to store data not generally edited by the user,
|
|||||||
things like runtime files.
|
things like runtime files.
|
||||||
Defaults to
|
Defaults to
|
||||||
.Pa ~/.local/share .
|
.Pa ~/.local/share .
|
||||||
:help xdg
|
.Ic ":help xdg"
|
||||||
.It Ev VIMINIT
|
.It Ev VIMINIT
|
||||||
Ex commands to be executed at startup.
|
Ex commands to be executed at startup.
|
||||||
.Ic ":help VIMINIT"
|
.Ic ":help VIMINIT"
|
||||||
.It Ev SHELL
|
.It Ev SHELL
|
||||||
Used to initialize the 'shell' option, which decides the default shell used by
|
Used to initialize the \(aqshell\(aq option, which decides the default shell
|
||||||
features like
|
used by features like
|
||||||
.Ic :terminal ,
|
.Ic :terminal ,
|
||||||
.Ic :! , and
|
.Ic :! ,
|
||||||
|
and
|
||||||
.Ic system() .
|
.Ic system() .
|
||||||
.El
|
.El
|
||||||
.Sh FILES
|
.Sh FILES
|
||||||
@ -408,13 +415,13 @@ runtime directory.
|
|||||||
.El
|
.El
|
||||||
.Sh AUTHORS
|
.Sh AUTHORS
|
||||||
Nvim was started by
|
Nvim was started by
|
||||||
.An Thiago de Arruda .
|
.An "Thiago de Arruda" .
|
||||||
Most of Vim was written by
|
Most of Vim was written by
|
||||||
.An -nosplit
|
.An -nosplit
|
||||||
.An Bram Moolenaar .
|
.An "Bram Moolenaar" .
|
||||||
Vim is based on Stevie, worked on by
|
Vim is based on Stevie, worked on by
|
||||||
.An Tim Thompson ,
|
.An "Tim Thompson" ,
|
||||||
.An Tony Andrews ,
|
.An "Tony Andrews" ,
|
||||||
and
|
and
|
||||||
.An G.R. (Fred) Walter .
|
.An "G.R. (Fred) Walter" .
|
||||||
.Ic ":help credits"
|
.Ic ":help credits"
|
||||||
|
Reference in New Issue
Block a user