Reman
Reman

Reputation: 8109

Next match without displaying Search String

Sometimes I create a search string, by means of a function, that is very long, for example if there are a lot of matches.

If I press "n" to see the next match, I see this very long search string every time. Is it possible to use "n" and "N" without seeing the search string? (but I still want to see the other commands)

Upvotes: 0

Views: 27

Answers (1)

DJMcMayhem
DJMcMayhem

Reputation: 7669

You can clear the screen with

:redraw!

So, you could do this to not see your search string anymore:

nnoremap n n:redraw!<cr>
nnoremap N N:redraw!<cr>

Upvotes: 1

Related Questions