diff options
Diffstat (limited to '.vim/after/autoload/gxfind.vim')
-rw-r--r-- | .vim/after/autoload/gxfind.vim | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/.vim/after/autoload/gxfind.vim b/.vim/after/autoload/gxfind.vim new file mode 100644 index 0000000..90923a8 --- /dev/null +++ b/.vim/after/autoload/gxfind.vim @@ -0,0 +1,9 @@ +function! gxfind#find(args) + let findcmd = 'find . -type f ' . a:args + if executable('fd') + let findcmd = 'fd --hidden --type f ' . a:args . ' . ' + endif + + :cexpr system(findcmd) +endfunction + |