Imagine the following asynchronous job to convert a given file to odt :
let mdfile = 'testfile.md'
call jobstart (['bash', '-c', 'pandoc ' . mdfile . ' -s -f markdown -o test.odt'], {'on_exit': 'OnEvent'})
Is there a way to pass the mdfile
variable to the OnEvent
function ?