My situation is, I have set nowrapscan
, however now, when I hit the end of a file, it will display
E385: search hit BOTTOM without match for: \v^[^=]*(…
How can I avoid that from displaying? I used help
but couldn't find anything about it.
Vi and Vim Stack Exchange is a question and answer site for people using the vi and Vim families of text editors. It only takes a minute to sign up.
Sign up to join this communityyou can use a custom command, if :sil norm! n
is too much to type in interactive mode:
:com! :Nextmatch :sil :norm n
:nnoremap <silent> n :Nextmatch<cr>
wrapscan
. Otherwise it will be displayed, saying that you reached the end of the file.wrapscan
setting for a specific search, like the\c
and\C
flags for case sensitive / insensitive search?