How do I redisplay the output from the last Ex command that already scrolled away?
g<
Pressing g or q to dismiss it again Example Tips :messages also shows recent messages (and those accumulate across the session), while g< only shows the last pa
14 results for ":scriptnames"
g<
Pressing g or q to dismiss it again Example Tips :messages also shows recent messages (and those accumulate across the session), while g< only shows the last pa
:set nomore
When a Vim command produces output that exceeds the terminal height, Vim pauses and displays a -- More -- prompt, requiring you to press a key to continue.
:put =execute('{cmd}')
The :put =execute('{cmd}') idiom inserts the output of any Vim Ex command as text in your buffer.
registers #registers #ex-commands #command-line #normal-mode
:verbose set option?
The :verbose prefix shows where an option was last set (which file, which line).
:packadd gzip
Compressed logs and artifacts often appear in debugging workflows, and repeatedly shelling out to decompress and recompress wastes time.
:let @a = execute('messages')
The execute() function (added in Vim 8.
:verbose set {option}?
:verbose set {option}? shows the current value of an option and reports exactly which file set it last — the full path and line number.
~/.vim/after/ftplugin/{filetype}.vim
Vim's after directory (~/.
ftdetect/{filetype}.vim
Vim automatically sources every file in ftdetect/ directories on the runtimepath when filetype detection runs.
:verbose map <key> or :verbose set option?
The :verbose prefix shows where a mapping, setting, command, or function was defined — which file and line number.
command-line #command-line #debugging #config #mappings #workflow
:filter /pattern/ {command}
:filter /pattern/ {command} runs any Ex command but suppresses every output line that does not match the pattern.
:packadd
Since Vim 8 and Neovim, Vim has a built-in package system that can load plugins directly from the filesystem — no external plugin manager required.
<SID>
(Script ID) is a Vimscript token that expands to a unique, per-script prefix at runtime.
:redir @a | {cmd} | redir END
The :redir command redirects the output of Ex commands to a register, file, or variable instead of displaying it on the screen.
command-line #command-line #ex-commands #registers #productivity #advanced