When I use imap or inoremap to create any shortcut in Neovim 0.2.0, the shortcuts seem to act as if they are not there! Here is an example that I just tried.
nnoremap <F2> :w!<CR>
vnoremap <F2> <Esc>:w!<CR>gv
inoremap <F2> <Esc>:w!<CR>gi
The insert mode mapping just types in the key combination when I enter it in insert mode. However, the normal and visual mode mappings work just fine. I have tried other combinations such as zz
C-s
and others.
Any ideas?
P.S. I have stty -ixon
in my shell rc file.
vim -u NONE
(or whatever Neovim's version of that is) and see if the problem persists.imap <Esc>
print?<C-s>
prints out^S
as it would with no binding.<c-s>
has to do with this? Basically, the answer is it should work and you must have something in your configs that is, for example, changing what <esc> does (see @Tumbler41's comment).