Home Explore Blog CI



neovim

7th chunk of `runtime/doc/various.txt`
342c45169cb11e24bcb3d31275aad8327169ea31bc35bf8b0000000100000b3d
 concatenating another command, the ":verbose"
			only applies to the first one: >
				:4verbose set verbose | set verbose
<				  verbose=4 ~
				  verbose=0 ~
			For logging verbose messages in a file use the
			'verbosefile' option.

							*:verbose-cmd*
When 'verbose' is non-zero, listing the value of a Vim option or a key map or
an abbreviation or a user-defined function or a command or a highlight group
or an autocommand will also display where it was last defined. If they were
defined in Lua they will only be located if 'verbose' is set. So Start
nvim with -V1 arg to see them. If it was defined manually then there
will be no "Last set" message.  When it was defined while executing a function,
user command or autocommand, the script in which it was defined is reported.

							*K*
[count]K		Runs the program given by 'keywordprg' to lookup the
			|word| (defined by 'iskeyword') under or right of the
			cursor. Default is "man". Works like this: >
				:tabnew | terminal {program} {keyword}
<			Special cases:
			- If 'keywordprg' begins with ":" it is invoked as
			  a Vim command with [count].
			- If 'keywordprg' is empty, |:help| is used.
			- When 'keywordprg' is equal to "man", a [count]
			  before "K" is inserted after the "man" command and
			  before the keyword.  For example, using "2K" while
			  the cursor is on "mkdir", results in: >
				!man 2 mkdir
<			- When 'keywordprg' is equal to "man -s", a [count]
			  before "K" is inserted after the "-s".  If there is
			  no count, the "-s" is removed.
							       *K-lsp-default*
			- The Nvim |LSP| client sets K to show LSP "hover"
			  feature. |lsp-defaults|

							*v_K*
{Visual}K		Like "K", but use the visually highlighted text for
			the keyword.  Only works when the highlighted text is
			not more than one line.

							*gO*
gO			Show a filetype-specific, navigable "outline" of the
			current buffer. For example, in a |help| buffer this
			shows the table of contents.

			Works in |help| and |:Man| buffers, or any buffer with
			an active |LSP| client (|lsp-defaults|).

[N]gs							*gs* *:sl* *:sleep*
:[N]sl[eep] [N][m]	Do nothing for [N] seconds, or [N] milliseconds if [m]
			was given.  "gs" always uses seconds.
			Default is one second. >
			     :sleep	     "sleep for one second
			     :5sleep	     "sleep for five seconds
			     :sleep 100m     "sleep for 100 milliseconds
			     10gs	     "sleep for ten seconds
<			Can be interrupted with CTRL-C.
			"gs" stands for "goto sleep".
			While sleeping the cursor is positioned in the text,
			if at a visible position.
			Queued messages are processed during the sleep.

							*:sl!* *:sleep!*
:[N]sl[eep]! [N][m]	Same as above, but hide the cursor.

							*g==*
g==			Executes the current code block.

			Works in |help| buffers.

==============================================================================

Title: Vim Commands: :verbose (continued), K, gO, :sleep, and g==
Summary
This section explains that :verbose only applies to the first command when concatenating commands. It details the 'K' command for keyword lookup with special cases for 'man' and LSP. The 'v_K' command extends this to visually highlighted text. It introduces the 'gO' command for displaying a filetype-specific outline, the ':sleep' command for pausing execution, and the 'g==' command for executing the current code block (specifically within help buffers).