When I open a log file in vi or view and I need to search for a word, the first thing I do is to press G to get to the bottom. Then I'll start a search using a / followed by whatever word I'm looking for. This usually works for me.
Today someone mentioned I should use ? to start my search since I'm starting at the bottom of the file and this will cause it to search from the bottom up.
My question is should I have been using the ? all along, since these are log files and I will usually want to find the most recent occurrence of the "word"?
Also where does the search start when using the /, from the top or the current line the cursor is on?
G(if you have wrapping enabled). Just hit?. Otherwise, yeah,G?works. – B Layer Dec 16 '20 at 21:00:help– D. Ben Knoble Dec 17 '20 at 22:10