A.J.Mechelynck wrote:
shawn bright wrote:
hello there,
i am kinda new to vim, so i am wanting to learn the stuff that i think
i will use the most first. One of the things i use a lot is search. i
have found how to do a search like this
/:s/reg/reg
is there a way i can tab through the finds ?
thanks
The above (without the / before :s) "replaces" reg by reg. To "search", use
/pattern
to search forward, or
?pattern
to search backward; then use
n
to repeat the search, or
N
to go back.
A pattern may be simple or complex: see
:help pattern overview
for a summary, or
:help pattern
for the formal grammar of Vim patterns.
Best regards,
Tony.
n -- Search again in the same direction
N -- Search again in the opposite direction
/<CR> -- Search again forward in the file.
?<CR> -- Search again backward in the file.
If you start a backward search, 'n' will repeat it the the same
direction, backward. Once you use the slash or question mark, 'n' will
search in that direction and 'N' will search in the opposite.
--
Just my 0.00000002 million dollars worth,
Shawn
"For the things we have to learn before we can do them, we learn by
doing them."
Aristotle