So I have been writing a vim extension but it simply does not make sense to me. I am using nvim and clearly see the function chansend in the documentation yet I get "Unknown function: chansend" when trying to call it. Seems trivial but simply does not exist, any help?
jobsend() is the previous name for
chansend() (changed in 5af47031). It will still work, but is not documented anymore to nudge people towards using
You can detect which is available and then use the appropriate one.
if exists('*chansend') let s:Send = function('chansend') else let s:Send = function('jobsend') endif call s:Send(job, data)