Matthias Guenther
Matthias Guenther

Reputation: 1683

Jump to previous white space in vim/gvim

Instead of using 'b' to jump to the previous word I want to have a shortcut which jumps to the previous white space between words.

Matthias.

Upvotes: 12

Views: 3374

Answers (3)

Grammin
Grammin

Reputation: 12205

Use F <space> to jump to the previous white space, and f <space> to jump to the next. To repeat those commands in the same direction, use ;, or use , to repeat them in the opposite direction.

Upvotes: 21

Benoit
Benoit

Reputation: 79185

1 hour ago you asked about next white space. You should group your questions.

So: same as previously: Bh.

Upvotes: 7

michaelmichael
michaelmichael

Reputation: 14125

Capital F + space will move the cursor to the nearest previous space. If you want to keep moving backwards this way you can use ;

Upvotes: 3

Related Questions