I have the following vimscript: it contains a vimscript function which executes a python code thanks to python << EOF
:
function! Test(myArgument)
python << EOF
def test(myArgument):
print "My argument " + myArgument
test("foo")
EOF
endfunction
How can I use the argument of the vimscript function a:myArgument
and pass it as argument to my python function (instead of foo
)?