function! s:small_terminal() abort new wincmd J call nvim_win_set_height(0, 12) set winfixheight term endfunction nnoremap st :call small_terminal()