Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jumping [f]orward to a letter into the next line

Tags:

vim

Say that in the following paragraph my cursor lies on the first are in the first sentence (wish I could highlight it, but I can't so ...). Upon pressing ff twice that will get me to fools in the first sentence, and then to of. Further pressing it will get me nowhere.

Some people are confident because they are fools. Leonard had the look of
someone who was confident because, so far, he'd never found reason not to be. He
would step off a high building in the happy state of mind of someone who
intended to deal with the problem of the ground when it presented itself.

What would I need to modify so I can "move" across lines, so that further pressing ff will make Vim jump into the next lines?

like image 218
Rook Avatar asked Oct 24 '25 02:10

Rook


1 Answers

Nothing to modify except Vim's source code. fFtT are linewise and there's nothing you can do about it. See :h left-right-motions

You could use /f, which is not limited to the current line, instead but it's not as fast as it requires another keypress.

Or a plugin like easymotion.

Did you know that you can hit ; to redo the previous fFtT?

like image 87
romainl Avatar answered Oct 26 '25 23:10

romainl