Terminal Inside Vim
:terminal opens a real shell โ usable with Vim navigation.
: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 mode | i or a |
| Send keystrokes from normal mode | Ctrl-W"{reg} pastes register |
Watch
See also: Shell Commands (:!), Creating Splits