import { fn } from "https://deno.land/x/ddc_vim@v4.1.0/deps.ts";
const { findfile } = fn;
Just like finddir()
, but find a file instead of a directory.
Uses 'suffixesadd'.
Example:
:echo findfile("tags.vim", ".;")
Searches from the directory of the current file upwards until it finds the file "tags.vim".
Can also be used as a method
:
GetName()->findfile()