kassio/neoterm

Almost impossible to escape INSERT mode in a terminal

paddor opened this issue · 2 comments

After opening a terminal and pressing a or i to run commands in it, it's impossible to escape INSERT mode. I have to exit the shell, or if I'm lucky and have the terminal in a split window, I can click on the other window.

Expected behavior
Pressinc Esc should leave the INSERT mode.

Versions

  • OS: Ubuntu 20.04
  • neoterm commit master/1283da9f078669593 (Tue Dec 1 20:18:41 2020 +0000)
  • Add all the configuration you have for neoterm
" none
  • Vim or Neovim
    • vim
    • neovim
  • Version [vim --version]
NVIM v0.4.4
Build type: Release
LuaJIT 2.1.0-beta3
Compilation: /usr/bin/cc -g -O2 -fdebug-prefix-map=/build/neovim-Fc1Pxf/neovim-0.4.4=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=1 -DDISABLE_LOG -Wdate-time -D_FORTIFY_SOURCE=1 -O2 -DNDEBUG -DMIN_LOG_LEVEL=3 -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wshadow -Wconversion -Wmissing-prototypes -Wimplicit-fallthrough -Wvla -fstack-protector-strong -fno-common -fdiagnostics-color=always -DINCLUDE_GENERATED_DECLARATIONS -D_GNU_SOURCE -DNVIM_MSGPACK_HAS_FLOAT32 -DNVIM_UNIBI_HAS_VAR_FROM -I/build/neovim-Fc1Pxf/neovim-0.4.4/build/config -I/build/neovim-Fc1Pxf/neovim-0.4.4/src -I/usr/include -I/usr/include/lua5.1 -I/build/neovim-Fc1Pxf/neovim-0.4.4/build/src/nvim/auto -I/build/neovim-Fc1Pxf/neovim-0.4.4/build/include
Compiled by team+vim@tracker.debian.org

Features: +acl +iconv +tui
See ":help feature-compile"

   system vimrc file: "$VIM/sysinit.vim"
  fall-back for $VIM: "/usr/share/nvim"

Run :checkhealth for more info

You need this remap tnoremap <Esc> <C-\><C-n>

Perfect, thanks!