t9md / atom-vim-mode-plus

vim-mode improved
https://atom.io/packages/vim-mode-plus
MIT License
1.4k stars 111 forks source link

How do I enable “find by two chars”? #980

Closed lydell closed 6 years ago

lydell commented 6 years ago

Check list

You have to check all before open issue.

Hi! I really like the improvements to f (and friends) you did a while ago (find across lines, highlight matches).

As far as I remember, there was also some experiment to find by 2 chars instead of 1 (like vim-sneak)? I’ve looked through the wiki and some previous issues, but I just can’t figure out how to enable it! Is that feature still around?

Sorry if I’m missing something obvious :(

(Btw, I started playing with the select operator today. It’s pure awesomeness! Thank you so much!)

t9md commented 6 years ago

All the options in this GIF is for tune f motion.

In my case I set 100 then land by 200ms timeout.

settings_ ___github_atom-vim-mode-plus
lydell commented 6 years ago

Thanks!

I guess I expected that there would be two separate commands: One for one-char find, and one for two-char find. Probably because I’m used to vim-sneak. I did scroll through all options, but for some reason it didn’t occur to me that those options did what I was looking for. However, now that you pointed them out to me they make sense (after reading them through a couple of times).

I’m currently trying out your config of “max 100, timeout 200”, and so far I like it!

Feel free to close this issue, unless you feel like trying to improve the descriptions for the settings or adding something to the wiki, and want to track that here. I tried to come up with some improved text, but it is hard. It’s a somewhat advanced, but very powerful, feature, and sometimes those are simply hard to describe :)

t9md commented 6 years ago

It might better to add when you want search 2 char, set this value 2 or more like description. Anyway I wont' track that, so close.