You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@justinmk copied a feature from clever-f.vim to vim-sneak, that allows one to repeat the mapping (hit s again after an s, for instance) to reach further instances of the pair.
This doesn't map directly to EasyMotion, in which further instances are reached by direct entry of a character from g:EasyMotion_keys; but I believe similar usability can be achieved with one simple modification:
Prepend the last character of an N-character sneak to g:EasyMotion_keys.
So, if I type sle, and there are several instances of le — the nearest key I could possibly hit, is the one my finger is already over: e! Thus, I propose we promote e, if it exists in g:EasyMotion_keys at all, to the front of g:EasyMotion_keys, so that the very first-nearest result is always instantly accessible by repeating the last character of your search: slee.
This is especially useful when replacing fFtT with EasyMotion movements, as I have:
nmapf<Plug>(easymotion-fl) | xmap f <Plug>(easymotion-fl) | omap f <Plug>(easymotion-fl)nmapF<Plug>(easymotion-Fl) | xmap F <Plug>(easymotion-Fl) | omap F <Plug>(easymotion-Fl)nmapt<Plug>(easymotion-tl) | xmap t <Plug>(easymotion-tl) | omap t <Plug>(easymotion-tl)nmapT<Plug>(easymotion-Tl) | xmap T <Plug>(easymotion-Tl) | omap T <Plug>(easymotion-Tl)
With the above suggestion, in the extremely-common case that “I just want to jump to the next [, then when typing f[, if there's more than one result, your finger is already hovering over the key that will get you where you wanted to go: f[[.
The text was updated successfully, but these errors were encountered:
@justinmk copied a feature from
clever-f.vim
tovim-sneak
, that allows one to repeat the mapping (hits
again after ans
, for instance) to reach further instances of the pair.This doesn't map directly to EasyMotion, in which further instances are reached by direct entry of a character from
g:EasyMotion_keys
; but I believe similar usability can be achieved with one simple modification:Prepend the last character of an N-character sneak to
g:EasyMotion_keys
.So, if I type
sle
, and there are several instances ofle
— the nearest key I could possibly hit, is the one my finger is already over:e
! Thus, I propose we promotee
, if it exists ing:EasyMotion_keys
at all, to the front ofg:EasyMotion_keys
, so that the very first-nearest result is always instantly accessible by repeating the last character of your search:slee
.This is especially useful when replacing
fFtT
with EasyMotion movements, as I have:With the above suggestion, in the extremely-common case that “I just want to jump to the next
[
, then when typingf[
, if there's more than one result, your finger is already hovering over the key that will get you where you wanted to go:f[[
.The text was updated successfully, but these errors were encountered: