hlissner / evil-snipe

2-char searching ala vim-sneak & vim-seek, for evil-mode
MIT License
336 stars 25 forks source link

Search in both directions #68

Closed linwaytin closed 4 years ago

linwaytin commented 4 years ago

This is a very useful plugin, but I meet a problem.

Sometimes I want to jump to, say, 'wo' before the current position of cursor. I press s and expect I can use S to jump backward to. However, if there is no 'wo' after the current position of my cursor, then I get "can' find 'wo'".

This is a little bothering because I need to take care of the relative position between the cursor and the position I want to jump to in my mind. Is there a way to solve this issue?

Thanks for such a good work.

hlissner commented 4 years ago

You can press ; and , to repeat the last search forward or backward. Press , after a failed search to search the other direction.

Otherwise, https://github.com/PythonNut/evil-easymotion might be what you want.

linwaytin commented 4 years ago

Thank you. That works. I think this plugin is mentally easier than easymotion for me. Great job.