I am trying to learn vim, and am trying to do so without any plugins. Tried following a few accounts on how to set up a fuzzy search, but I am a little stuck.
What I have in my vimrc as it concerns searching files, and how I understand it to be working is below:
" search down into subfolders/provides tab-completion for all file-related tasks
set path+=**
" display all matching files when we tab complete
set wildmenu
What is happening:
- I type
:find filena
at the bottom of the editor - Hit
tab
to see some autocomplete action - What shows up instead at the bottom is something like this:
:find filena...
and the editor seems to be in a frozen state. I hitCtrl-c
and am able to get out of it.
If I type in the complete filename
and hit <enter>
it works no problem, finding the file immediately. But the autocomplete is not functioning as I would expect. Any insight would be greatly appreciated!
Some more info if it might be helpful:
- When I
<enter>
:set path
, this is returned:path=.,/usr/include,,,**
which should be fine from what I have read. - Other post looking to implement a fuzzy search without plugins. Have tried a couple of other ways, but with the same behavior: Opening files in Vim using Fuzzy Search
- The path on the machine I am working on (a bit of mess I admit, but not sure if it might be the culprit):
/Users/NJJJ/bin:/Users/NJJJ/.rbenv/shims:/Applications/Postgres.app/Contents/Versions/latest/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Applications/Postgres.app/Contents/Versions/latest/bin
Thanks in advance!