mcchrish / nnn.vim

File manager for vim/neovim powered by n³
BSD 2-Clause "Simplified" License
646 stars 25 forks source link

Unknown function: term_getstatus in ftplugin/nnn.vim #169

Open sedimentation-fault opened 1 year ago

sedimentation-fault commented 1 year ago

Problem

Cloned nnn.vim (the directory) into /usr/local/share/vim/plugin/ In my vimrc I have added /usr/local/share/vim to my runtimepath. Upon start of vim (but NOT of gvim!) I get:

Error detected while processing BufEnter Autocommands for "<buffer=1>":
E117: Unknown function: term_getstatus

How to reproduce

See above.

Expected behavior

No error, of course.

Environment:

sedimentation-fault commented 1 year ago

No ideas, even after a month? :-(

It seems that, while the function term_gestatus() is part of vim 8.2, as one can see with :help term_getstatus, it is called at a point too early in time. FWIW, directly after that error I get output from the syntastic plugin in my status line:

Error detected while processing BufEnter Autocommands for "<buffer=1>":
E117: Unknown function: term_getstatus
syntastic: 0.242815: g:syntastic_version = '3.10.0 (Vim 802, Linux)'
Press ENTER or type command to continue