vim-easymotion
vim-easymotion copied to clipboard
within-line for B, E, W, gE
I use the following mappings:
" easymotion
map <leader><leader>s <Plug>(easymotion-sl)
map f <Plug>(easymotion-fl)
map F <Plug>(easymotion-Fl)
map t <Plug>(easymotion-tl)
map T <Plug>(easymotion-Tl)
map b <Plug>(easymotion-bl)
map e <Plug>(easymotion-el)
map w <Plug>(easymotion-wl)
map ge <Plug>(easymotion-gel)
" note that these don't have line mappings;
" see https://github.com/easymotion/vim-easymotion/issues/354
map E <Plug>(easymotion-E)
map B <Plug>(easymotion-B)
map W <Plug>(easymotion-W)
map gE <Plug>(easymotion-gE)
I like the within-line variants as, for example, pressing b on the first word in a line will just go to the beginning of that word instead of displaying matches on previous lines (which is often not what you want). Can we add
easymotion-Wleasymotion-Eleasymotion-Bleasymotion-gEl
According to the README, these should already exist:
Every motion also has variants that are restricted to just the current line (e.g. <Plug>(easymotion-sl), <Plug>(easymotion-bd-wl), etc...).
Well, we will have to do it ourselves.