haya14busa / is.vim

incremental search improved - successor of incsearch.vim
MIT License
255 stars 3 forks source link

Fuzzy search #7

Open yannack opened 6 years ago

yannack commented 6 years ago

Are there any plans for fuzzy searching in is.vim?

nickjj commented 5 years ago

Fuzzy search is amazing (I use fzf all the time) but do we really need fuzzy searching here?

I'm new to Vim so I'm still in the "I don't know what the hell I'm doing" phase but when I use / and ?, it's typically to move my cursor from where I'm to the term I'm searching for. It's a movement command so I can target in something specific.

If that's the case, wouldn't fuzzy searching create too many false positive matches? For example, let's say you had this sentence:

The helicopter said hello world

If you wanted to jump to the end of "hello" you might do /lo but if that were a fuzzy search, the first match would be the "lo" in helicopter.

What use case can you think of where fuzzy searching for movement would be beneficial?

ixti commented 2 years ago

@yannack you can use FZF.vim for that:

Command List
:BLines [QUERY] Lines in the current buffer