I am searching a pattern with /pattern
starting from a random line number ln1
. Sometimes I kept on going with n without realizing that I completed searching the whole file.
Given the premise, I would like vim to print a message similar to something like search 1 loop completed
, once I reach ln1
.
How can I edit my
.vimrc
to add this feature?
'search hit BOTTOM, continuing at TOP'
enough for you ? Otherwise, you'll need to reprogramn
to register the first use and detect when you cycle. Is it worth it?