When I do something like:
To find the next G on the line, I can press
; to find the next occurrence. However, once I've passed one, is there a way to find the previous occurrence? Likewise with doing capital
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 community
The opposite of
, to find the previous occurrence.
It works with both
Of course, this will be inverted with
Thus, to go backwards, you could choose to only use
f together with
, : this is as many keystrokes as using capital letters and keeps cycling consistent in every case.