It might be a stupid question, but may I know how to pass a variable to the command which will be executed by AsyncRun? What I want to do is this:
function RunGoTest()
let l:func_name = "some_function_name" " this dynamically changes by the cursor position
AsyncRun! "go test -run " . l:func_name ./...
endf
Then, run :call RunGoTest().
The above code did not work because (I guess) "go test -run" is treated as one command (the actual output was command not found).
It might be a stupid question, but may I know how to pass a variable to the command which will be executed by AsyncRun? What I want to do is this:
Then, run
:call RunGoTest()
.The above code did not work because (I guess) "go test -run" is treated as one command (the actual output was
command not found
).