Easymotion Vim cheatsheat

The default leader has been changed to <Leader><Leader> to avoid conflicts with other plugins you may have installed. This can easily be changed back to pre-1.3 behavior by rebinding the leader in your vimrc:

    Default Mapping      | Details
    ---------------------|----------------------------------------------
    <Leader>f{char}      | Find {char} to the right. See |f|.
    <Leader>F{char}      | Find {char} to the left. See |F|.
    <Leader>t{char}      | Till before the {char} to the right. See |t|.
    <Leader>T{char}      | Till after the {char} to the left. See |T|.
    <Leader>w            | Beginning of word forward. See |w|.
    <Leader>W            | Beginning of WORD forward. See |W|.
    <Leader>b            | Beginning of word backward. See |b|.
    <Leader>B            | Beginning of WORD backward. See |B|.
    <Leader>e            | End of word forward. See |e|.
    <Leader>E            | End of WORD forward. See |E|.
    <Leader>ge           | End of word backward. See |ge|.
    <Leader>gE           | End of WORD backward. See |gE|.
    <Leader>j            | Line downward. See |j|.
    <Leader>k            | Line upward. See |k|.
    <Leader>n            | Jump to latest "/" or "?" forward. See |n|.
    <Leader>N            | Jump to latest "/" or "?" backward. See |N|.
    <Leader>s            | Find(Search) {char} forward and backward.
                         | See |f| and |F|.

Basic EasyMotion Commands

Word Navigation


Character Search


Line Navigation


Line Column Navigation


Search Within a Motion

Combine EasyMotion with standard Vim motions:


Mark Jump


Customizations

Set EasyMotion leader key

If you want a custom leader (e.g., ,):

let g:EasyMotion_leader_key = ','

Change highlighting colors

Customize the colors for better visibility:

highlight EasyMotionTarget ctermbg=red ctermfg=white
highlight EasyMotionShade ctermbg=none ctermfg=gray

Control key bindings

Disable default mappings and create custom ones:

let g:EasyMotion_do_mapping = 0
nmap <Leader><Leader>w <Plug>(easymotion-w)