How can I switch from forward to backward search in Vim?
Simply typing a ?
without any text following it will re-run the search backwards.
I.e. typing /
Return or ?
Return will always rerun the last search, but in the direction you want.
Simply typing a ?
without any text following it will re-run the search backwards.
I.e. typing /
Return or ?
Return will always rerun the last search, but in the direction you want.