Home Explore Blog CI



neovim

22th chunk of `runtime/doc/options.txt`
aef7ba66feb4508ac856581e0b8553c79d770521490f90b90000000100000fa5

	used.  The command-line will cover the last line of the screen when
	shown.

	WARNING: `cmdheight=0` is EXPERIMENTAL. Expect some unwanted behaviour.
	Some 'shortmess' flags and similar mechanism might fail to take effect,
	causing unwanted hit-enter prompts.  Some informative messages, both
	from Nvim itself and plugins, will not be displayed.

						*'cmdwinheight'* *'cwh'*
'cmdwinheight' 'cwh'	number	(default 7)
			global
	Number of screen lines to use for the command-line window. |cmdwin|

						*'colorcolumn'* *'cc'*
'colorcolumn' 'cc'	string	(default "")
			local to window
	'colorcolumn' is a comma-separated list of screen columns that are
	highlighted with ColorColumn |hl-ColorColumn|.  Useful to align
	text.  Will make screen redrawing slower.
	The screen column can be an absolute number, or a number preceded with
	'+' or '-', which is added to or subtracted from 'textwidth'. >vim

		set cc=+1	  " highlight column after 'textwidth'
		set cc=+1,+2,+3  " highlight three columns after 'textwidth'
		hi ColorColumn ctermbg=lightgrey guibg=lightgrey
<
	When 'textwidth' is zero then the items with '-' and '+' are not used.
	A maximum of 256 columns are highlighted.

						*'columns'* *'co'* *E594*
'columns' 'co'		number	(default 80 or terminal width)
			global
	Number of columns of the screen.  Normally this is set by the terminal
	initialization and does not have to be set by hand.
	When Vim is running in the GUI or in a resizable window, setting this
	option will cause the window size to be changed.  When you only want
	to use the size for the GUI, put the command in your |ginit.vim| file.
	When you set this option and Vim is unable to change the physical
	number of columns of the display, the display may be messed up.  For
	the GUI it is always possible and Vim limits the number of columns to
	what fits on the screen.  You can use this command to get the widest
	window possible: >vim
		set columns=9999
<	Minimum value is 12, maximum value is 10000.

					*'comments'* *'com'* *E524* *E525*
'comments' 'com'	string	(default "s1:/*,mb:*,ex:*/,://,b:#,:%,:XCOMM,n:>,fb:-,fb:•")
			local to buffer
	A comma-separated list of strings that can start a comment line.  See
	|format-comments|.  See |option-backslash| about using backslashes to
	insert a space.

					*'commentstring'* *'cms'* *E537*
'commentstring' 'cms'	string	(default "")
			local to buffer
	A template for a comment.  The "%s" in the value is replaced with the
	comment text, and should be padded with a space when possible.
	Used for |commenting| and to add markers for folding, see |fold-marker|.

						*'complete'* *'cpt'* *E535*
'complete' 'cpt'	string	(default ".,w,b,u,t")
			local to buffer
	This option specifies how keyword completion |ins-completion| works
	when CTRL-P or CTRL-N are used.  It is also used for whole-line
	completion |i_CTRL-X_CTRL-L|.  It indicates the type of completion
	and the places to scan.  It is a comma-separated list of flags:
	.	scan the current buffer ('wrapscan' is ignored)
	w	scan buffers from other windows
	b	scan other loaded buffers that are in the buffer list
	u	scan the unloaded buffers that are in the buffer list
	U	scan the buffers that are not in the buffer list
	k	scan the files given with the 'dictionary' option
	kspell  use the currently active spell checking |spell|
	k{dict}	scan the file {dict}.  Several "k" flags can be given,
		patterns are valid too.  For example: >vim
			set cpt=k/usr/dict/*,k~/spanish
<	s	scan the files given with the 'thesaurus' option
	s{tsr}	scan the file {tsr}.  Several "s" flags can be given, patterns
		are valid too.
	i	scan current and included files
	d	scan current and included files for defined name or macro
		|i_CTRL-X_CTRL-D|
	]	tag completion
	t	same as "]"
	f	scan the buffer names (as opposed to buffer contents)
	F{func}	call the function {func}.  Multiple "F" flags may be specified.
		Refer to |complete-functions| for details on how the function
		is invoked and what it should return.  The

Title: Vim Options: cmdheight, cmdwinheight, colorcolumn, columns, comments, commentstring, complete
Summary
This section describes several Vim options. 'cmdheight' sets the number of screen lines for the command-line. 'cmdwinheight' sets the height for the command-line window. 'colorcolumn' highlights specific screen columns. 'columns' sets the number of columns of the screen. 'comments' defines strings that can start a comment line. 'commentstring' provides a template for comments. 'complete' specifies how keyword completion works.