itmuckel
itmuckel

Reputation: 1430

Vim: find in next line

In vim I can use f+Character to find the next character on this line. But when I already found the last character, it won't take me to the next character on the next line.

int x = md(v.x + perm(y)); //cursor at last )
float permut = perm(x);

When I type f+( it won't take me to the ( on the next line. Why? Can I change this behavior?

Upvotes: 1

Views: 1896

Answers (2)

SibiCoder
SibiCoder

Reputation: 1496

Press j0f) to find first ( in next line.

   j - move line down
   0 - move to first character
   f) - find `(`

Upvotes: 2

diwo
diwo

Reputation: 376

You want to use /( instead to search multiple lines, followed by n for next match

Upvotes: 4

Related Questions