vimtricks.wiki Concise Vim tricks, one at a time.

How do I hide noisy completion messages in Vim's command line?

Answer

:set shortmess+=c

Explanation

Insert-mode completion can spam the command line with status text like "match 1 of N" and related prompts. That feedback is sometimes useful, but in large files or fast completion workflows it becomes visual noise and pushes out more relevant messages. :set shortmess+=c suppresses completion-menu chatter so the command area stays quieter and easier to scan.

How it works

  • shortmess is a compact-message option controlled by single-letter flags
  • +=c adds only the c flag, which suppresses specific completion messages
  • Using += is important because it preserves your existing shortmess tuning
  • The setting applies immediately and can be made persistent in your vimrc/init.vim

Example

Without the setting, repeatedly triggering completion may print transient status messages after each attempt. After running:

:set shortmess+=c

completion still works normally, but those command-line updates are reduced, leaving room for diagnostics, search feedback, and your own :echo output.

Tips

  • Inspect current flags with :set shortmess?
  • Revert just this tweak with :set shortmess-=c
  • Keep this as a local experiment first, then persist it once you confirm it matches your completion workflow

Next

How do I programmatically create a blockwise register with setreg()?