Home Explore Blog CI



neovim

85th chunk of `runtime/doc/options.txt`
dbe272b86b8f1982979a7d8855222b896d9fc99244e058b20000000100000fa2
 commands.

					*'sidescrolloff'* *'siso'*
'sidescrolloff' 'siso'	number	(default 0)
			global or local to window |global-local|
	The minimal number of screen columns to keep to the left and to the
	right of the cursor if 'nowrap' is set.  Setting this option to a
	value greater than 0 while having |'sidescroll'| also at a non-zero
	value makes some context visible in the line you are scrolling in
	horizontally (except at beginning of the line).  Setting this option
	to a large value (like 999) has the effect of keeping the cursor
	horizontally centered in the window, as long as one does not come too
	close to the beginning of the line.
	After using the local value, go back the global value with one of
	these two: >vim
		setlocal sidescrolloff<
		setlocal sidescrolloff=-1
<
	Example: Try this together with 'sidescroll' and 'listchars' as
		 in the following example to never allow the cursor to move
		 onto the "extends" character: >vim

		 set nowrap sidescroll=1 listchars=extends:>,precedes:<
		 set sidescrolloff=1
<

						*'signcolumn'* *'scl'*
'signcolumn' 'scl'	string	(default "auto")
			local to window
	When and how to draw the signcolumn. Valid values are:
	   "auto"	only when there is a sign to display
	   "auto:[1-9]" resize to accommodate multiple signs up to the
	                given number (maximum 9), e.g. "auto:4"
	   "auto:[1-8]-[2-9]"
	                resize to accommodate multiple signs up to the
			given maximum number (maximum 9) while keeping
			at least the given minimum (maximum 8) fixed
			space. The minimum number should always be less
			than the maximum number, e.g. "auto:2-5"
	   "no"		never
	   "yes"	always
	   "yes:[1-9]"  always, with fixed space for signs up to the given
	                number (maximum 9), e.g. "yes:3"
	   "number"	display signs in the 'number' column. If the number
			column is not present, then behaves like "auto".

			*'smartcase'* *'scs'* *'nosmartcase'* *'noscs'*
'smartcase' 'scs'	boolean	(default off)
			global
	Override the 'ignorecase' option if the search pattern contains upper
	case characters.  Only used when the search pattern is typed and
	'ignorecase' option is on.  Used for the commands "/", "?", "n", "N",
	":g" and ":s" and when filtering matches for the completion menu
	|compl-states|.
	Not used for "*", "#", "gd", tag search, etc.  After "*" and "#" you
	can make 'smartcase' used by doing a "/" command, recalling the search
	pattern from history and hitting <Enter>.

			*'smartindent'* *'si'* *'nosmartindent'* *'nosi'*
'smartindent' 'si'	boolean	(default off)
			local to buffer
	Do smart autoindenting when starting a new line.  Works for C-like
	programs, but can also be used for other languages.  'cindent' does
	something like this, works better in most cases, but is more strict,
	see |C-indenting|.  When 'cindent' is on or 'indentexpr' is set,
	setting 'si' has no effect.  'indentexpr' is a more advanced
	alternative.
	Normally 'autoindent' should also be on when using 'smartindent'.
	An indent is automatically inserted:
	- After a line ending in "{".
	- After a line starting with a keyword from 'cinwords'.
	- Before a line starting with "}" (only with the "O" command).
	When typing '}' as the first character in a new line, that line is
	given the same indent as the matching "{".
	When typing '#' as the first character in a new line, the indent for
	that line is removed, the '#' is put in the first column.  The indent
	is restored for the next line.  If you don't want this, use this
	mapping: ":inoremap # X^H#", where ^H is entered with CTRL-V CTRL-H.
	When using the ">>" command, lines starting with '#' are not shifted
	right.

				*'smarttab'* *'sta'* *'nosmarttab'* *'nosta'*
'smarttab' 'sta'	boolean	(default on)
			global
	When enabled, the <Tab> key will indent by 'shiftwidth' if the cursor
	is in leading whitespace.  The <BS> key has the opposite effect.
	This behaves as if 'softtabstop' is set to the value of 'shiftwidth'.
	Have a look at section |30.5|

Title: Vim Options: 'sidescrolloff' (continued), 'signcolumn', 'smartcase', 'smartindent', and 'smarttab'
Summary
This section describes more Vim options. It continues from 'sidescrolloff', providing an example. Then, it covers 'signcolumn', which configures the display of the sign column for signs (like breakpoints); 'smartcase', which overrides 'ignorecase' when the search pattern contains uppercase letters; 'smartindent', which provides smart auto-indenting for C-like languages; and 'smarttab', which makes the <Tab> key indent by 'shiftwidth' in leading whitespace.