Using a terminal emulator (with
:term), I would like to insert the value of a variable at the terminal cursor.
In a normal text buffer, I could use
put =g:my_variable or
exec ("normal! i" . g:my_variable). Neither of these seems to work with the terminal emulator, however. How can I send the contents of the variable
g:my_variable to the job that is running in the terminal emulator?