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?

  • this is a case of new documentation, old neovim. you may want to use the development v0.3.0 version
    – Mass
    Jun 8, 2018 at 21:03
  • @Mass Seems like a stupid decision to push documentation of the git version rather than the latest stable version. Apparently I need to check out old documentation to be able to write a backwards-compatible vim plugin then, thanks. Jun 9, 2018 at 7:56

1 Answer 1


jobsend() is the previous name for chansend() (changed in 5af47031). It will still work, but is not documented anymore to nudge people towards using chansend().

You can detect which is available and then use the appropriate one.

if exists('*chansend')
    let s:Send = function('chansend')
    let s:Send = function('jobsend')
call s:Send(job, data)
  • Yeah I saw that, but I am running 0.2.2 which is the latest release so it seems like chansend should be available (but apparently it isn't as the commit has the nighly tag I guess). Very annoying. jobsend still doesn't work for me but that's a seperate issue I guess, so thanks for the help! Jun 9, 2018 at 7:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.