From d836fff263f6abd93c6dc5f5046d64b1c135b274 Mon Sep 17 00:00:00 2001 From: Felix Nehrke Date: Sun, 25 Sep 2022 02:25:28 +0200 Subject: [PATCH] Configure terminal-config of vim to be compatible between vim and nvim as far as possible --- .vimrc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.vimrc b/.vimrc index a045d05..f0ecf4c 100644 --- a/.vimrc +++ b/.vimrc @@ -143,6 +143,12 @@ nnoremap gv :vertical wincmd f " Open shell with Ctrl+d to enable a toggle between a shell and vim nnoremap :botright terminal ++close inoremap :botright terminal ++close +" nvim uses a different terminal approach – more vim-like actually :-P +if has('nvim') + nnoremap :botright :split term://bashi + inoremap :botright :split term://bashi + tnoremap +endif " Handle nerdtree and other utility-windows nnoremap n :NERDTreeFocus