7 ms·
I learned vim about two years ago and have been using it ever since, and at the time I learned it I learned all the neat combos for moving your cursor ("w", "5w
by savanaly 10y ago
I learned vim about two years ago and have been using it ever since, and at the time I learned it I learned all the neat combos for moving your cursor ("w", "5w", "b", "^", "$", and many other actually complicated ones besides).
As clever as these motions are though, easymotion simply blows them out of the water and there's no reason to use them. With easy motion it only takes as long as it takes your eye to move to where you want to move and you're there...you really can't beat that.
In some cases of course easymotion isn't enough because the place to which you need to move isn't on screen. So far all files I edit are short enough that I can scan the whole thing relatively easily by just holding down "J" or "K" (which I have mapped to "10j" and "10k")
- justinmk 10y agovim-sneak[1] is a less bling-bling alternative to easymotion. I originally wrote it to address the sub-optimal valley between Vim's built-in near-distance (f, t, ...) and long-distance (/) motions. It also tries to avoid the hesitation that easymotion introduces, by avoiding the need to select a label if the first match is correct. [1] https://github.com/justinmk/vim-sneak https://github.com/justinmk/vim-sneak
- mixedmath 10y agoFor what it's worth, I use vim-sneak and I like it tremendously. Thank you.
- hacker42 10y agoThere is a Spacemacs layer with nearly the same functionality called evil-snipe which binds s and S.
- sooheon 10y agoIsn't it more accurate to say there's an elisp package called evil-snipe which does this? The spacemacs layer didn't write the functionality, it's one example of how to configure it.
- pritambaral 10y agoYes, it sure is. But in the context we're talking about: Vim and Vim users, I think mentioning it as a Spacemacs layer is an acceptable offense.
- corndoge 10y agoJust installed, love it. Thanks!
- cesnja 10y agoI remember trying out easymotion and disliking its flashy UI effects. This plugin seems cool, thanks for sharing (and creating it).
- egjerlow 10y agoJust installed it and from my immediate first impression this is gonna be a time/strokesaver. Good on you!
- ufmace 10y agoThat J and K mappings sound like a pretty good idea actually... I'd been using <leader>j for 10j.
- sooheon 10y agoJoining lines and looKing up definitions is far too useful for me.
- ufmace 10y agoI'm trying out <leader>j for join for now, seems handy so far. I'm liking being able to hit the J for 10j several times in a row fast. I don't think I join often enough to mind it being 2 sequential keys instead of a combo.