hlissner / evil-snipe

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

Enhance snipe jumplist interaction #37

Closed sooheon closed 8 years ago

sooheon commented 8 years ago

from sneak.vim README:

Press ctrl-o or to go back to the starting point. This is a built-in Vim motion; Sneak adds to Vim's jumplist only on s invocation—not repeats—so you can abandon a trail of ; or , by a single ctrl-o or.

Can we get this behaviour by leaving :jump t under evil-snipe-def, and setting :jump nil on evil-snipe-repeat and its reverse? After this discussion, I realised that pushing to the jumplist after every small jump is not how vim does it by default either.

edit: maybe making this customisable would be better so those who prefer the current behaviour, or even no jumplist at all can have their way.

hlissner commented 8 years ago

Fixed! I thought the default vim-sneak behavior was best. The previous behavior can be done via snipe's repeating feature.