Searching in Vim isn't limited to /
and ?
however those other
searches don't have the same easy one key command to move through
matches and I'm lazy. So let's make N
and n
move to the next match
for whatever the last type of search was performed. I'm mainly
interested in the quickfix list but I've written this generically so it
can be easily adapted to other sources.
function! Cycle(type, forward) abort
try