Shougo / deol.nvim

Dark powered shell interface for Vim/NeoVim
MIT License
330 stars 16 forks source link

How to escape from vim inside a Deol session #18

Closed tnguyen14 closed 4 years ago

tnguyen14 commented 4 years ago

Inside a Deol session, can I "escape" a vim session? This is an issue because my "git commit" would bring up vim as the GIT_EDITOR, and I can't seem to write in that vim session.

Shougo commented 4 years ago

What is your environment? Please describe it for me.

If you use neovim, you should install neovim-remote. https://github.com/mhinz/neovim-remote

If you use Vim8, you should install GVim.

tnguyen14 commented 4 years ago

I am using Vim8, but no GVim. How would GVim enable this?

Shougo commented 4 years ago

How would GVim enable this?

You should research it instead.

What is your environment?

How do you install Vim8?

Shougo commented 4 years ago

Inside a Deol session, can I "escape" a vim session? This is an issue because my "git commit" would bring up vim as the GIT_EDITOR, and I can't seem to write in that vim session.

You should check your Vim's terminal configuration. Because, in default behavior <ESC> works as internal Vim's <ESC>.

So it works as like. <ES>:wq exists your inside Vim and returns command line.

tnguyen14 commented 4 years ago

When I do ESC in that, it seems to send the Esc to Deol's session, not the git editing's session.

Shougo commented 4 years ago

You should check verbose tnoremap <ESC>. You have overwrite <ESC> mapping.