nvim terminal

:te[rminal][!] [{cmd}]

Run {cmd} in a non-interactive ‘shell’ in a new terminal-emulator buffer. Without {cmd}, start an interactive ‘shell’. Type i to enter Terminal-mode, then keys are sent to the job running in the terminal. Type <C-> to leave Terminal-mode. CTRL-_CTRL-N.