Terminal Inside Vim

:terminal opens a real shell โ€” usable with Vim navigation.

Keys: :term

:terminal (or :term) opens a buffer running an interactive shell. You can switch to Normal mode inside the terminal to scroll back, search, and yank with normal Vim motions.

:terminal (or :term) opens a real interactive shell inside a Vim buffer. It's a buffer like any other โ€” split it, switch to it, yank from it.

Action How
Open a terminal :terminal
Open in horizontal split :term
Open in vertical split :vert term
Run a one-shot command :term make
Switch to Normal mode in terminal Ctrl-WN
Back to interactive Insert i or a
Send keystrokes from Normal Ctrl-W"{reg} pastes register

Watch

See also: Shell Commands ({key::!}), Creating Splits