neovim: Allow closing terminal with double escape
I always forget the default key binding.
This commit is contained in:
parent
1dcaeb0aed
commit
c09d54513b
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue