11

How to jump to the lines above the cursor while using the easymotion plugin in vim?

Xavier T.
  • 40,509
  • 10
  • 68
  • 97
Rishabh Sagar
  • 1,744
  • 2
  • 17
  • 27
  • Your desktop looks good but I can't see a damn thing in this tiny window. Try adding a code sample to your question instead. – romainl Oct 06 '11 at 15:52

2 Answers2

19

To search words backwards use <Leader><Leader>b
Try <Leader><Leader>B to search WORDS

Fábio Perez
  • 23,850
  • 22
  • 76
  • 100
Adolfo Abegg
  • 765
  • 7
  • 15
  • 2
    Can you please explain the difference between two? Documentation has similar description for both, except one searches for *words* and other for *WORDS*. But what is the difference between words and WORDS in this context? – Andrew-Dufresne Oct 29 '13 at 19:06
  • 1
    For anyone else who might come to this thread in the future, and is curious about this as I was: The difference is explained here: http://stackoverflow.com/questions/14390519/whats-the-difference-between-b-and-b-in-vim The key takeaway is: "The difference is that vim considers a "word" to be letters, numbers, and underscores [...], but a "WORD" is always anything that isn't whitespace." – ebenpack Jul 25 '14 at 14:41
  • 2
    It is actually b . – Sayan Bhattacharjee Mar 08 '16 at 10:22
13

<leader><leader>f will search forward while <leader><leader>F will search backward (and such upward!). Same with t and T.

This is analogous to standard Vim motion f / F

This is all explained in :help easymotion.txt

Fábio Perez
  • 23,850
  • 22
  • 76
  • 100
Xavier T.
  • 40,509
  • 10
  • 68
  • 97