syl20bnr / spacemacs

A community-driven Emacs distribution - The best editor is neither Emacs nor Vim, it's Emacs *and* Vim!
http://spacemacs.org
GNU General Public License v3.0
23.58k stars 4.9k forks source link

vim-easymotion alike word search? #10925

Open libniwtr opened 6 years ago

libniwtr commented 6 years ago

Hi, everyone, I have just switched from vim to spacemacs, but I wonder is there any method to search words just like easymotion-sn in vim-easymotion? Just like the one demonstrated in section "n-character search motion" in their homepage, one can use easymotion-sn to search any word in current buffer in a tree fashion, and use <Tab> to scroll down/up a page, when one hits <CR>then a set of choices are highlighted so that one can jump to that point quickly. See:

img

I've checked avy-goto-char-timer, it worked fine in current visible page but can not scroll up or down a page. Because I always need to navigate through the whole text, the <Tab> functionality is so important to me that becomes the only obstacle I am meeting with.

Thanks for anyone that could help.

gdkrmr commented 6 years ago

you can do /word and every match in the current buffer should be highlighted, press ENTER and then you can use n and N to jump around. With SPC s c you 'unhighlight'.

There are other possibilities, they hide behind SPC j mostly, try also SPC SPC avy to search for these commands.

github-actions[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please let us know if this issue is still valid!

thouger commented 2 years ago

i like the way where in vim-easymotion too,still wait a way

thouger commented 2 years ago

i think https://develop.spacemacs.org/doc/DOCUMENTATION.html#vim-motions-with-avy is the answer.

lebensterben commented 2 years ago

right. the documentation can be improved by directly mentioning vim-easymotion.

github-actions[bot] commented 2 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please let us know if this issue is still valid!