💻 Software
Is it possible to not trigger my normal search highlighting when using search as a movement?
Fresh5 days ago
Mar 15, 2026440 viewsConfidence Score0%
0%
Problem
When I do a search in vim, I like to have my results highlighted and super-visible, so I give them a bright yellow background and a black foreground in my . (This is for GUI versions of vim, like MacVim or Gvim; for command-line, you'd use and .) But I sometimes use search with a command, as in - "…
Error Output
" When highlighting search terms, make sure text is contrasting colors :highlight Search guibg=yellow guifg=black
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: Is it possible to not trigger my normal search highlighting when using search as a movement?
Low Risk
These naive mappings seem to help. normal search Turn highlighting on before doing the search: motion search Turn highlighting off before doing the search: Note that you'd need to setup similar mapping for .
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix