Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Does anyone have a motion jump plugin they use with neovim they can recommend? I used to use a plugin where you could just to a given character in a given buffer, but I can’t remember the name or if it even works with neovim.


leap.nvim

you press a keybind and then press one or two characters , all instances of that character pair in the viewport will get get a hint (a characteror two in highlight) , hit those two hint keys and the cursor jumps to that location

its incredibly fast to navigate around your viewport with this.

https://codeberg.org/andyg/leap.nvim


+1 Leap takes a second to get used to but I love it so much. Even if you don't get to the precise character you want, you can get so close enough that normal motion commands get you the rest of the way.

I do change the bindings, tho. I have 's' leap forwards and 'S' leap backwards.


Nice! Thats what I was thinking of. Thanks!


Like the nth character in the current buffer? I believe vim has that built-in: `<n>go`. I think `<n><space>` will do it relative to your current position.


Actually, `<n><space>` ignores things like new lines.


Check out folke/flash.nvim for a motion jump plugin. It’s brilliant.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: