vim:keys: Bind <leader><Esc> to exit terminal

Bind `<leader><Esc>` to exit terminal-mode.
This commit is contained in:
2022-01-21 19:13:24 +01:00
parent c2e21d23c0
commit 5155cbbed1

View File

@@ -79,7 +79,7 @@ nmap <S-Tab> <C-O>
" Terminal
if (has('nvim'))
" tnoremap <Esc> <C-\><C-n>
tnoremap <leader><Esc> <C-\><C-n>
nmap <leader><CR> :split +terminal<CR>i
nmap <leader>v<CR> :vsplit +terminal<CR>i
elseif (has('terminal'))