Skip to content

Find and Replace Highlighting #212

Answered by mmirus
Patrock404 asked this question in Q&A
Discussion options

You must be logged in to vote

TLDR: try configuring the IncSearch highlight group.


👋 I did a little testing and I think this is what I'm seeing:

If you're doing a search

Example: /local

  • While you're typing the search, the IncSearch highlight group controls the appearance of the next match
  • Search controls the remaining matches while typing, and all matches after you press enter

If you're doing a substitute without confirm enabled

Example: %s/local/test/

  • Substitute controls the appearance of both matches (while typing that part) and substitutions (while/after typing that part)

If you're doing a substitute with confirm enabled

Example: :s/local/test/gc or :%s/local/test/c

  • Substitute applies as above while you're ty…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Patrock404
Comment options

Answer selected by Patrock404
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants