neovim: Allow closing terminal with double escape

I always forget the default key binding.
This commit is contained in:
Simon Bruder 2021-07-17 13:25:23 +02:00
parent 1dcaeb0aed
commit c09d54513b
Signed by: simon
GPG key ID: 8D3C82F9F309F8EC

View file

@ -115,6 +115,9 @@ in
" Remap leader key
let mapleader = ","
" Close terminal with double-Esc
tnoremap <Esc><Esc> <C-\><C-n>
" Jump to the last position
au BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$")
\| exe "normal! g`\"" | endif