Equivalent to :stop
Example
Normal 0 / 3Command-line 1 / 3Suspended 2 / 3Normal 3 / 3Equivalent to :stop.
Terminal process
- Foreground
Vim- Vim
running- autowrite
off- autowriteall
off
Command entered · ready to apply
Terminal process
- Foreground
Vim- Vim
running- autowrite
off- autowriteall
off
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.
Terminal process
- Foreground
parent job-control shell- Vim
suspended job %1
Shell
$
The parent shell foregrounds the suspended Vim job.
Terminal process
- Foreground
Vim- Vim
running- autowrite
off- autowriteall
off
Shell
$ fg vim notes.txt
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: :suspend. 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.
notesCursor on line 1, column 1Details & Vim help
Equivalent to :stop. 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 :sus[pend] 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.