Skip to content
This repository has been archived by the owner on Apr 1, 2020. It is now read-only.

(n)vi(m) in terminal within oni #2741

Open
AckslD opened this issue Apr 23, 2019 · 4 comments
Open

(n)vi(m) in terminal within oni #2741

AckslD opened this issue Apr 23, 2019 · 4 comments

Comments

@AckslD
Copy link

AckslD commented Apr 23, 2019

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.
@oni-bot
Copy link

oni-bot bot commented Apr 23, 2019

Hello and welcome to the Oni repository! Thanks for opening your first issue here. To help us out, please make sure to include as much detail as possible - including screenshots and logs, if possible.

@AckslD
Copy link
Author

AckslD commented Apr 23, 2019

Sorry, I just by accident found that this functionality exists by pressing <shift>-<esc>. Closing this issue.

@AckslD AckslD closed this as completed Apr 23, 2019
@AckslD AckslD reopened this Apr 23, 2019
@AckslD
Copy link
Author

AckslD commented Apr 23, 2019

However, if you press <shift>-<esc> within vim, it also performs undo (u)?

@cnscorpions
Copy link

@AckslD pressing - not work for me to close zsh terminal opend from oni

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants