I've recently switched to Neovim, and some days in, I realized that there was no
search hit BOTTOM, continuing at TOP message when jumping from the last to the first search result (or vice versa), which I'm relying on fairly regularly. I did some experimenting and figured out that the current pattern shown in the status bar (e.g.,
/\<foo\>) overwrites the error message.
The message can be restored by silencing the search navigation commands with the following (otherwise empty) config and
" ~/.config/nvim/init.vim nnoremap <silent> * * nnoremap <silent> n n " ... (omitting backward, g*, etc.) set shortmess= " set shortmess+=s " don't give "search hit BOTTOM, continuing at TOP" ...
The problem with this approach is twofold:
search hit BOTTOM...does not disappear when jumping from the first to the second result after wrap-jumping from the last to the first;
The current search pattern (and
[i/n]counter) is no longer shown.
While I still prefer this state to the former, the ideal situation would be as follows:
The current search result with counter is shown by default after starting a search or jumping between results.
However, when jumping from the first to the last search result in the file (or vice versa), the message
search hit BOTTOM, continuing at TOP(or vice versa) is shown instead -- but disappears on further movement, e.g., when jumping on to the second result.
How can this be achieved?
PS: I'm running
NVIM V0.4.3 (
Features: +acl +iconv +tui) on Manjaro Linux.