Vim hiding with neovim terminal emulator

I recently switched from vim to neovim by installing a vim-fugitive plugin. Previously, :Git rebase -iin vim, I bought up the interactive redirect window in the vim window, which I could edit as I needed :xfrom the window, and rebase will be executed.

Now, in neovim, running the same rebase command calls the terminal emulator buffer with interactive rebase inside. The emulator is not modified until I enter the terminal mode by pressing I. Then I can edit the commits as I need, but how can I close the emulator to do rebase? Is there a way to prevent the terminal emulator from appearing after running the commands :Git? I looked through the vim-fugitive documentation, but can't find anything about it. Any help would be greatly appreciated, thanks

+4
source share
1 answer

Paste the following into your init.vim:

tnoremap <Esc> <C-\><C-n>
tnoremap <C-v><Esc> <Esc>

Now you can exit terminal mode with <Esc>.

+1
source

Source: https://habr.com/ru/post/1690977/


All Articles