#2741·oni

(n)vi(m) in terminal within oni

Author: AckslDCreated Apr 23, 2019Updated Feb 13, 2020

Oni Version: 0.3.6 Neovim Version (Linux only): Operating System: macOS

Issue: I usually have vi key bindings set in my shell. However if I use a terminal inside oni (:term) I cannot exit insert-mode since it "exits" control to the terminal. Similarly if I open (n)vim inside the terminal running within oni, I cannot exit insert mode. Would it be possible to make it such that if you inside insert mode within terminal inside oni and you press esc once you exit insert mode in the terminal but is still left in the terminal and if you click esc again you exit control of the terminal (I don't know if that made sense).

Steps to reproduce:

  • Open oni.
  • type :term
  • press i
  • type eho $PATH
  • press <esc>
  • press Fh
  • press i then c (to correct the typo)
  • you will now see a 'c' after $PATH where it shouldn't be.