mirror of
				https://github.com/neovim/neovim.git
				synced 2025-10-26 12:27:24 +00:00 
			
		
		
		
	doc/man: brevity, clarity
This commit is contained in:
		
							
								
								
									
										88
									
								
								man/nvim.1
									
									
									
									
									
								
							
							
						
						
									
										88
									
								
								man/nvim.1
									
									
									
									
									
								
							| @@ -1,4 +1,4 @@ | |||||||
| .Dd January 28, 2016 | .Dd December 17, 2017 | ||||||
| .Dt NVIM 1 | .Dt NVIM 1 | ||||||
| .Os | .Os | ||||||
| .Sh NAME | .Sh NAME | ||||||
| @@ -25,7 +25,7 @@ To enter commands in | |||||||
| type a colon | type a colon | ||||||
| .Pq Sq \&: | .Pq Sq \&: | ||||||
| which is also used in this manual to denote commands. | which is also used in this manual to denote commands. | ||||||
| For more information, consult the online help system with the | For more information, consult the online help with the | ||||||
| .Ic :help | .Ic :help | ||||||
| command. | command. | ||||||
| .Bl -tag -width Fl | .Bl -tag -width Fl | ||||||
| @@ -81,16 +81,11 @@ Ex mode. | |||||||
| See | See | ||||||
| .Ic :help Ex-mode . | .Ic :help Ex-mode . | ||||||
| .It Fl E | .It Fl E | ||||||
| Improved Ex mode. | Ex mode, improved. | ||||||
| See | See | ||||||
| .Ic :help gQ . | .Ic :help gQ . | ||||||
| .It Fl s | .It Fl es | ||||||
| Silent mode. | Ex mode, silent. | ||||||
| Only takes effect if |  | ||||||
| .Fl e |  | ||||||
| or |  | ||||||
| .Fl E |  | ||||||
| is specified before it. |  | ||||||
| .It Fl d | .It Fl d | ||||||
| Diff mode. | Diff mode. | ||||||
| Show the difference between two to four files, similar to | Show the difference between two to four files, similar to | ||||||
| @@ -99,12 +94,12 @@ See | |||||||
| .Ic :help diff . | .Ic :help diff . | ||||||
| .It Fl R | .It Fl R | ||||||
| Read-only mode. | Read-only mode. | ||||||
| Sets the option 'readonly'. | Sets the 'readonly' 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 needed Ex command, such as | To overwrite a file, add an exclamation mark to the relevant Ex command, such as | ||||||
| .Ic :w! . | .Ic :w! . | ||||||
| See | See | ||||||
| .Ic :help 'readonly' . | .Ic :help 'readonly' . | ||||||
| @@ -112,37 +107,31 @@ See | |||||||
| Restricted mode. | Restricted mode. | ||||||
| Disable commands that make use of an external shell. | Disable commands that make use of an external shell. | ||||||
| .It Fl m | .It Fl m | ||||||
| Disable file modifications. | Resets the 'write' option, to disable file modifications. | ||||||
| Unsets the option 'write'. |  | ||||||
| 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 | ||||||
| Disable file and buffer modifications. | Resets the 'write' and 'modifiable' options, to disable file and buffer | ||||||
| Unsets the options 'write' and 'modifiable'. | modifications. | ||||||
| Note that these options can be set to re-enable making modifications. |  | ||||||
| .It Fl b | .It Fl b | ||||||
| Binary mode. | Binary mode. | ||||||
| See | See | ||||||
| .Ic :help edit-binary . | .Ic :help edit-binary . | ||||||
| .It Fl l | .It Fl l | ||||||
| Lisp mode. | Lisp mode. | ||||||
| Sets the options 'lisp' and 'showmatch'. | Sets the 'lisp' and 'showmatch' options. | ||||||
| .It Fl A | .It Fl A | ||||||
| Arabic mode. | Arabic mode. | ||||||
| Sets the option 'arabic'. | Sets the 'arabic' option. | ||||||
| .It Fl F |  | ||||||
| Farsi mode. |  | ||||||
| Sets the options 'fkmap' and 'rightleft'. |  | ||||||
| .It Fl H | .It Fl H | ||||||
| Hebrew mode. | Hebrew mode. | ||||||
| Sets the options 'hkmap' and 'rightleft'. | Sets the 'hkmap' and 'rightleft' 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. | ||||||
| Print messages about which files are being sourced and for reading and | Print messages about which files are being sourced and for reading and | ||||||
| writing a ShaDa file. | writing a ShaDa file. | ||||||
| .Ar N | .Ar N | ||||||
| is the value for the 'verbose' option; defaults to | is the 'verbose' level; defaults to | ||||||
| .Cm 10 | .Cm 10. | ||||||
| if omitted. |  | ||||||
| If | If | ||||||
| .Ar file | .Ar file | ||||||
| is specified, append messages to | is specified, append messages to | ||||||
| @@ -153,9 +142,9 @@ Debugging mode. | |||||||
| Started when executing the first command from a script. | Started when executing the first command from a script. | ||||||
| .It Fl n | .It Fl n | ||||||
| Disable the use of swap files. | Disable the use of swap files. | ||||||
| Sets the option 'updatecount' to | Sets the 'updatecount' option to | ||||||
| .Cm 0 . | .Cm 0 . | ||||||
| Can be useful for editing file(s) 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 | ||||||
| Recovery mode. | Recovery mode. | ||||||
| If | If | ||||||
| @@ -176,13 +165,13 @@ Alias for | |||||||
| .It Fl u Ar vimrc | .It Fl u Ar vimrc | ||||||
| Use | Use | ||||||
| .Ar vimrc | .Ar vimrc | ||||||
| instead of the default of | instead of the default | ||||||
| .Pa ~/.config/nvim/init.vim . | .Pa ~/.config/nvim/init.vim . | ||||||
| If | If | ||||||
| .Ar vimrc | .Ar vimrc | ||||||
| is | is | ||||||
| .Cm NORC , | .Cm NORC , | ||||||
| do not load any initialization files (excluding plugins), | do not load any initialization files (except plugins), | ||||||
| and do not attempt to parse environment variables. | and do not attempt to parse environment variables. | ||||||
| If | If | ||||||
| .Ar vimrc | .Ar vimrc | ||||||
| @@ -194,7 +183,7 @@ See | |||||||
| .It Fl i Ar shada | .It Fl i Ar shada | ||||||
| Use | Use | ||||||
| .Ar shada | .Ar shada | ||||||
| instead of the default of | instead of the default | ||||||
| .Pa ~/.local/share/nvim/shada/main.shada . | .Pa ~/.local/share/nvim/shada/main.shada . | ||||||
| If | If | ||||||
| .Ar shada | .Ar shada | ||||||
| @@ -233,7 +222,6 @@ For the first file, position the cursor on line | |||||||
| If | If | ||||||
| .Ar linenum | .Ar linenum | ||||||
| is omitted, position the cursor on the last line of the file. | is omitted, position the cursor on the last line of the file. | ||||||
| Note that |  | ||||||
| .Cm +5 | .Cm +5 | ||||||
| and | and | ||||||
| .Cm -c 5 | .Cm -c 5 | ||||||
| @@ -246,8 +234,7 @@ For the first file, position the cursor on the first occurrence of | |||||||
| .Ar pattern . | .Ar pattern . | ||||||
| If | If | ||||||
| .Ar pattern | .Ar pattern | ||||||
| is omitted, the most recently used search pattern is used (if there is one). | is omitted, the most recent search pattern is used (if any). | ||||||
| Note that |  | ||||||
| .Cm +/foo | .Cm +/foo | ||||||
| and | and | ||||||
| .Cm -c /foo | .Cm -c /foo | ||||||
| @@ -268,10 +255,9 @@ Up to 10 instances of | |||||||
| or | or | ||||||
| .Cm + | .Cm + | ||||||
| can be used. | can be used. | ||||||
| Note that | .Qq Cm +foo | ||||||
| .Qq Cm +set si |  | ||||||
| and | and | ||||||
| .Cm -c \(dqset si\(dq | .Cm -c \(dqfoo\(dq | ||||||
| are equivalent. | are equivalent. | ||||||
| .It Fl -cmd Ar command | .It Fl -cmd Ar command | ||||||
| Like | Like | ||||||
| @@ -292,9 +278,9 @@ cannot start with a hyphen | |||||||
| .Pq Sq - . | .Pq Sq - . | ||||||
| If | If | ||||||
| .Ar session | .Ar session | ||||||
| is omitted, then | is omitted then | ||||||
| .Pa Session.vim , | .Pa Session.vim | ||||||
| if found, is used. | is used, if found. | ||||||
| See | See | ||||||
| .Ic :help session-file . | .Ic :help session-file . | ||||||
| .It Fl s Ar scriptin | .It Fl s Ar scriptin | ||||||
| @@ -339,24 +325,24 @@ Print version information and exit. | |||||||
| .Sh ENVIRONMENT | .Sh ENVIRONMENT | ||||||
| .Bl -tag -width Fl | .Bl -tag -width Fl | ||||||
| .It Ev VIM | .It Ev VIM | ||||||
| Used to locate various user files, such as init.vim. | Used to locate user files, such as init.vim. | ||||||
|  | System-dependent, see :help $VIM. | ||||||
| .It Ev VIMRUNTIME | .It Ev VIMRUNTIME | ||||||
| Used to locate runtime files, such as online documentation and | Used to locate runtime files (documentation, syntax highlighting, etc.). | ||||||
| syntax highlighting definitions. |  | ||||||
| .It Ev XDG_CONFIG_HOME | .It Ev XDG_CONFIG_HOME | ||||||
| Path to the user-local configuration directory, see | Path to the user-local configuration directory, see | ||||||
| .Sx FILES . | .Sx FILES . | ||||||
| Defaults to | Defaults to | ||||||
| .Pa ~/.config | .Pa ~/.config . | ||||||
| if not set. | See :help xdg. | ||||||
| .It Ev XDG_DATA_HOME | .It Ev XDG_DATA_HOME | ||||||
| Like | Like | ||||||
| .Ev XDG_CONFIG_HOME , | .Ev XDG_CONFIG_HOME , | ||||||
| but used to store data not generally edited by the user, | 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/share | .Pa ~/.local/share . | ||||||
| if not set. | See :help xdg. | ||||||
| .It Ev VIMINIT | .It Ev VIMINIT | ||||||
| Ex commands to be executed at startup. | Ex commands to be executed at startup. | ||||||
| For example, the command to quit is | For example, the command to quit is | ||||||
| @@ -370,9 +356,11 @@ to | |||||||
| See | See | ||||||
| .Ic :help VIMINIT . | .Ic :help VIMINIT . | ||||||
| .It Ev SHELL | .It Ev SHELL | ||||||
| Used to set the 'shell' option, which determines the shell used by the | Used to initialize the 'shell' option, which decides the default shell used by | ||||||
| .Ic :terminal | features like | ||||||
| command. | .Ic :terminal , | ||||||
|  | .Ic :! , and | ||||||
|  | .Ic system() . | ||||||
| .El | .El | ||||||
| .Sh FILES | .Sh FILES | ||||||
| .Bl -tag -width "~/.config/nvim/init.vim" | .Bl -tag -width "~/.config/nvim/init.vim" | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Justin M. Keyes
					Justin M. Keyes