Vim Recall繁體中文

Open a terminal window

:terminal

Example

Normal 0 / 2
notes
Cursor on line 1, column 1

Open a terminal window.

Windows

notes.txt Active
notes

Jobs

cat
not started
Before & after
Before
notes
Cursor on line 1, column 1

Windows

notes.txt Active
notes

Jobs

cat
not started
After
Cursor on line 1, column 1

Windows

/bin/cat [Terminal] Active
empty terminal; cat is waiting for input
notes.txt
notes

Jobs

/bin/cat
running with terminal input/output
Input target
terminal job; not Vim's text insertion

Subject: :terminal. Documentation-backed illustration; assumes +terminal and +job support, Unix /bin/cat available, splitbelow unset; no job is actually started by the app; not replay-verified. Opens a terminal window and runs /bin/cat as its job. The active terminal is empty and waiting for input; notes.txt remains in its other window.

Details & Vim help

Open a terminal window. This Ex reference uses the full command name; the alphabetical index omits arguments. Supply the ranges, arguments, flags and prerequisite state documented in the linked help. Press Enter to submit a complete command. The index spelling :ter[minal] puts the optional abbreviation suffix in square brackets; those brackets are not typed. Availability and exact behavior can depend on Vim build features, options, mappings and editor state; the linked help is authoritative. Embedded terminals require +terminal, +job and +channel build features.