Resize terminal in nvim to 10 lines automatically when opening

This commit is contained in:
2025-01-03 16:24:24 +01:00
parent 094eac4371
commit 1907aa7bfb

4
.vimrc
View File

@@ -155,8 +155,8 @@ nnoremap <silent> <C-d> :botright terminal ++close<CR>
inoremap <silent> <C-d> <Esc>:botright terminal ++close<CR>
" nvim uses a different terminal approach more vim-like actually :-P
if has('nvim')
nnoremap <silent> <C-d> :botright :split term://bash<CR>i
inoremap <silent> <C-d> <Esc>:botright :split term://bash<CR>i
nnoremap <silent> <C-d> :botright :split term://bash<CR>:resize -100<CR>:set winheight=10 wfh<CR>i
inoremap <silent> <C-d> <Esc>:botright :split term://bash<CR>:resize -100<CR>:set winheight=10 wfh<CR>i
tnoremap <Esc> <C-\><C-n>
endif