I decided to give neovim a try and things mostly work with my vim8 configuration. However, function keys are dead in the text user interface (ok in nvim-qt), i.e. with
:map <F1> iFoo!<esc> nothing gets inserted when pressing F1. The same goes for
<Home> etc. Only the arrow keys work. Also, when I try to map with
:map CTRL-V followed by a function key, no characters are produced. It is as if the function keys are dead, not providing any characters. The function keys produce the expected escape sequence at the shell prompt, i.e. for F1:
$ od -c ^[[224z 0000000 033 [ 2 2 4 z \n 0000007
This is on FreeBSD,
TERM=xterm-256color with both the installed /usr/local/bin/nvim 0.4.4 as well as the current version cloned from github.
I've also tried under zsh and bash, same behavior. I've tried as a guest user without any dot files, nothing changed. The
:healthcheck looks spotless (except for unwanted python 2):
health#nvim#check ======================================================================== ## Configuration - OK: no issues found ## Performance - OK: Build type: Release ## Remote Plugins - OK: Up to date health#provider#check ======================================================================== ## Clipboard (optional) - OK: Clipboard tool found: xclip ## Python 2 provider (optional) - WARNING: No Python executable found that can `import neovim`. Using the first available executable for diagnostics. - ERROR: Python provider error: - ADVICE: - provider/pythonx: Could not load Python 2: python2 not found in search path or not executable. python2.7 not found in search path or not executable. python2.6 not found in search path or not executable. /usr/local/bin/python is Python 3.7 and cannot provide Python 2. - INFO: Executable: Not found ## Python 3 provider (optional) - INFO: `g:python3_host_prog` is not set. Searching for python3 in the environment. - INFO: Executable: /usr/local/bin/python3 - INFO: Python version: 3.7.10 - INFO: pynvim version: 0.4.3 - OK: Latest pynvim is installed. ## Ruby provider (optional) - INFO: Ruby: ruby 2.7.3p183 (2021-04-05 revision 6847ee089d) [amd64-freebsd13] - INFO: Host: /usr/local/bin/neovim-ruby-host - OK: Latest "neovim" gem is installed: 0.8.1 ## Node.js provider (optional) - INFO: Node.js: v15.14.0 - INFO: Neovim node.js host: /usr/local/lib/node_modules/neovim/bin/cli.js - OK: Latest "neovim" npm/yarn package is installed: 4.10.0
I'm running out of ideas to try. What am I doing wrong? What's funny with my system?