Skip to content

PythonNut/evil-easymotion

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

evil-easymotion

MELPA

In which we give Lokaltog/vim-easymotion a streak of malevolence.

Suppose you're a proud user of evil, but you have a nasty habit: when you want to move ten lines down, you spam j ten times instead of using the ergonomically superior 10j. With evil-easymotion you can invoke SPCj, and this plugin will put a target character on every possible position. Type the character on the target and wham! you have teleported there.

Obligatory screencast

screencast

Currently most motions are supported, and it's easy to define your own easymotions. Easymotions can also be composed with operators e.g. dSPCj to delete a bunch of lines.

Notice

The evil-easymotion API has changed to use keyword arguments. The required changes (if any) to your config should be pretty self-explanatory. This should allow me to add more options in the future without breaking your config.

Usage

To define easymotions for all motions that evil defines by default, add

(evilem-default-keybindings "SPC")

This binds all motions under the prefix SPC in evil-motion-state-map. This is not done by default for motions defined manually. You will need to supply the prefix.

Or, if you prefer more granular control:

(evilem-define (kbd "SPC w") 'evil-forward-word-begin)

You can always drop by the wiki for more tips.

Credits

I'm deeply indebted to:

About

⏩ A port of vim easymotion to Emacs' evil-mode

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 7