Vim Recall繁體中文

Forcefully ends the job

Ctrl-w Ctrl-c

Example

Terminal-job 0 / 1
ready
input> 
Cursor on line 2, column 8

Forcefully ends the job.

Vim registers

a Register a
Characterwisehello
· space ⇥ tab ↵ line break

Illustrated windows

terminal [demo] Active
Job running
notes.txt
Ordinary text

SIMULATED terminal job

ready
input> 
Job
running
Sent to job
none
Before & after
Before
ready
input> 
Cursor on line 2, column 8

Vim registers

a Register a
Characterwisehello
· space ⇥ tab ↵ line break

Illustrated windows

terminal [demo] Active
Job running
notes.txt
Ordinary text

SIMULATED terminal job

ready
input> 
Job
running
Sent to job
none
After
ready
input> 
Cursor on line 2, column 1

Vim registers

a Register a
Characterwisehello
· space ⇥ tab ↵ line break

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.