Forcefully ends the job
Example
Terminal-job 0 / 1Normal 1 / 1ready
input> Cursor on line 2, column 8ready
input> Cursor on line 2, column 1Forcefully ends the job.
Vim registers
aRegister a- Characterwise
hello
Illustrated windows
- terminal [demo] Active
Job running- notes.txt
Ordinary text
SIMULATED terminal job
ready input>
- Job
running- Sent to job
none
Forcefully stop the job and retain its finished buffer; CTRL-C forwarding is attempted after the kill request.
Vim registers
aRegister a- Characterwise
hello
Illustrated windows
- terminal [demo] Active
Job ended by requested forceful stop- notes.txt
Ordinary text
SIMULATED terminal job
ready input>
- Job
ended by requested forceful stop- Input action
kill requested; CTRL-C forwarding attempted
Before & after
ready
input> Cursor on line 2, column 8Vim registers
aRegister a- Characterwise
hello
Illustrated windows
- terminal [demo] Active
Job running- notes.txt
Ordinary text
SIMULATED terminal job
ready input>
- Job
running- Sent to job
none
ready
input> Cursor on line 2, column 1Vim registers
aRegister a- Characterwise
hello
Illustrated windows
- terminal [demo] Active
Job ended by requested forceful stop- notes.txt
Ordinary text
SIMULATED terminal job
ready input>
- Job
ended by requested forceful stop- Input action
kill requested; CTRL-C forwarding attempted
ILLUSTRATION. Assume +terminal, +job and +channel, an unset termwinkey, and an already running prepared terminal job. All output and input are SIMULATED; this module never starts or signals a process. The prepared byte-reader uses raw, non-echoing PTY input and term_finish=open. After its forceful stop the finished buffer stays visible in Normal mode, with the editor cursor at line 2, column 1. Vim also attempts to forward CTRL-C after requesting the kill; delivery is not guaranteed.
Details & Vim help
Forcefully ends the job. Use while the embedded terminal job has keyboard focus in Terminal-Job mode. This index form assumes 'termwinkey' is unset; changing that option changes the window-command prefix. Most Normal-mode commands require first switching to Terminal-Normal mode. 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.