I'm trying to write a custom completion function for filenames and sometimes they can have whitespaces.

So far I've been using this

command! -nargs=1 -complete=customlist,MyComplete MyFunc execute MyFunc(<f-args>)

But it only completes the last word even with nargs=1.

Is there any way to complete arguments containing white spaces?


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.