I figured out how to search the file structure and it’s really nice :find **/my_file.txt
This will find any file with the name my_file.txt. What I want to do is create a custom command so I can just say :srch my_file.txt so that I don’t have to type out the entire find command each time. Any ideas how to do this? I found the
:command MyCommand find **/my_file.txt
but I can’t figure out how to pass it a file that I enter
Check
:h <args>& co.But, why don’t you add ./** to
&path? (and continue to use:findthat supports autocompletion, instead of implementing it by yourself)