neovim: Allow closing terminal with double escape

I always forget the default key binding.
upower
Simon Bruder 2021-07-17 13:25:23 +02:00
parent 1dcaeb0aed
commit c09d54513b
Signed by: simon
GPG Key ID: 8D3C82F9F309F8EC
1 changed files with 3 additions and 0 deletions

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