nnn.vim icon indicating copy to clipboard operation
nnn.vim copied to clipboard

Unknown function: term_getstatus in ftplugin/nnn.vim

Open sedimentation-fault opened this issue 2 years ago • 1 comments

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:

  • OS: Gentoo Linux
  • Terminal: x11-misc/tabbed-0.6-r1 with x11-terms/xterm-367
  • Shell: app-shells/bash-5.1_p16
  • Vim version: app-editors/vim-8.2.3741
  • Plugin manager: None
  • Plugin version: git clone of yesterday
  • Nnn version: app-misc/nnn-4.8

sedimentation-fault avatar Aug 21 '23 16:08 sedimentation-fault

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

sedimentation-fault avatar Sep 21 '23 08:09 sedimentation-fault