K
The
Command
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
K(lookup word)K(LSP hover if configured):set keywordprg=:help (use vim help)
Reference
Learn every Vim command visually — right in your browser.
Add Vim What? to Chrome — FreeAlso on Firefox.
Related commands