Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vim: Add sneak motion #13858

Closed
1 task done
mrkajetanp opened this issue Jul 5, 2024 · 2 comments · Fixed by #22793
Closed
1 task done

vim: Add sneak motion #13858

mrkajetanp opened this issue Jul 5, 2024 · 2 comments · Fixed by #22793
Labels
enhancement [core label] keymap / key binding Feedback for keyboard shortcuts, key mapping, etc vim

Comments

@mrkajetanp
Copy link
Contributor

Check for existing issues

  • Completed

Describe the feature

The vim-sneak plugin provides a nice 'sneak' motion which jumps to any location specified by two characters. It shouldn't be very complicated to implement (hopefully) and would be a nice addition - I might try to give it a go myself when I have some spare time but I thought it might be worth opening an issue for it regardless.

https://github.com/justinmk/vim-sneak/tree/master

If applicable, add mockups / screenshots to help present your vision of the feature

No response

@notpeter notpeter added vim keymap / key binding Feedback for keyboard shortcuts, key mapping, etc and removed triage labels Jul 5, 2024
@ConradIrwin
Copy link
Member

@mrkajetanp definitely. If you want to pair on this: https://calendly.com/conradirwin/pairing.

@mrkajetanp
Copy link
Contributor Author

I was curious so I just went ahead and implemented it, the PR is linked above :)

github-merge-queue bot pushed a commit that referenced this issue Jan 10, 2025
A (re)continuation of #21067. 

This takes the original implementation in
#15572 and adds the test in
#21067. Then, as requested in
#21067 (comment),
it documents how to map a keybinding instead of having a setting.

Closes #13858

Release Notes:

- Added support for the popular
[vim_sneak](https://github.com/justinmk/vim-sneak) plugin. This is
disabled by default and can be enabled by binding a key to the `Sneak`
and `SneakBackward` operators.

Reference:
https://github.com/justinmk/vim-sneak

---------

Co-authored-by: Kajetan Puchalski <[email protected]>
Co-authored-by: Aidan Grant <[email protected]>
Co-authored-by: Conrad Irwin <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement [core label] keymap / key binding Feedback for keyboard shortcuts, key mapping, etc vim
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants