Vim Recall繁體中文

Suspend the editor or escape to a shell

:stop

Example

Normal 0 / 3

Suspend the editor or escape to a shell.

Terminal process

Foreground
Vim
Vim
running
autowrite
off
autowriteall
off
Before & after

Before

Terminal process

Foreground
Vim
Vim
running
autowrite
off
autowriteall
off

After

Terminal process

Foreground
Vim
Vim
running
autowrite
off
autowriteall
off

Shell

$ fg
vim notes.txt

Subject: :stop. Documentation-backed illustration; assumes Unix terminal with job control, no GUI, both autowrite and autowriteall off, and shell set to a working interactive shell; shell state is simulated; not replay-verified. Suspends the editor under Unix job control; fg in the parent shell resumes it. With both autowrite and autowriteall off, buffer changes are not written.

Sample buffer
notes
Cursor on line 1, column 1
Details & Vim help

Suspend the editor or escape to a shell. 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 :st[op] 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.