Vim What? › Commands › K
K

The K command in Vim

Command

help / hover

Look up the word under the cursor using keywordprg (default: man page). Commonly remapped in LSP configs to show hover documentation: nnoremap K <cmd>lua vim.lsp.buf.hover()<cr>.
Examples

Reference

Official Vim help for K →

Learn every Vim command visually — right in your browser.

Add Vim What? to Chrome — Free

Also on Firefox.

Related commands