I think since the last iTerm2 update, the DEL (⌦) key does not work anymore when using Neovim (NVIM v0.10.2).
In normal mode it does nothing and in edit mode it displays the following character:
(Arabic Presentation Forms-A (U+FE28)
In the iTerm2 settings, I don't have a special remap for the delete key. I am sure It comes from iTerm2 because when using the standard mac Terminal, it works as before.
I saw several related questions, but a remap of the DEL with the key does not work. Any clue?
I've also been searching for the answer to this question and have tried a few things:
set backspace=indent,eol,start
in my ~/.vimrc
iTerm2 > Settings > Profiles > Keys
^H
0x04
for fn + DeletePresets...
to "Natural Text Editing" and "Terminal.app Compatibility"None of these actions fixed the issue for me.
Then today I found these issues that point at iTerm:
This code change (that addresses the iTerm issue above) might fix for future versions:
However, this revision does not appear to have made it into the 3.5.7 stable release:
da8e620804512732447ff5801ce0a66ef910357a
commit is not present)I downloaded and tried 3.5.7 locally anyways and it still exhibited the fn+delete issue (only backward deleting not forward) for me.
These actions did mitigate this issue for me:
Stable Releases > Show Older Versions
) and possibly disable updates (Settings > General > Services > Check for updates automatically
)But just note that it'll probably be fixed in the future so make sure you eventually keep using the latest version of iTerm if you take either of these routes (because it's awesome and the latest versions will be the best / most secure over time).
Note: I'm on OS X 14.6.1 not 15.