I am currently using gvim in an MS-Windows environment.
As part of a vim script function, I need to open a pdf file. So I call
system like so:
This opens and displays the pdf_file. Yet, the problem is, that the script hangs until I close the pdf viewer application. I'd rather have the script to continue with its execution.
So, I tried changing the function call to, in order to open and display my pdf file asynchronously:
call system('start ' . l:pdf_file)
Now, I get an
E371: Command not found error.
I am not sure why this is and more importantly, how I can achieve what I want.