Switch to Terminal-Normal mode
Ctrl-\ Ctrl-n
Example
Terminal-job 0 / 1Terminal-normal 1 / 1ready
input> Cursor on line 2, column 8ready
input> Cursor on line 2, column 7Switch to Terminal-Normal mode.
Vim registers
aRegister a- Characterwise
hello
SIMULATED terminal job
ready input>
- Job
running- Sent to job
none
Stop sending keys to the job and enter Terminal-normal mode to inspect its output.
Vim registers
aRegister a- Characterwise
hello
SIMULATED terminal job
ready input>
- Job
running- Sent to job
none
Before & after
ready
input> Cursor on line 2, column 8Vim registers
aRegister a- Characterwise
hello
SIMULATED terminal job
ready input>
- Job
running- Sent to job
none
ready
input> Cursor on line 2, column 7Vim registers
aRegister a- Characterwise
hello
SIMULATED terminal job
ready input>
- Job
running- Sent to job
none
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 cursor begins at the prompt after input>.
Details & Vim help
Press Ctrl-\ Ctrl-n while the terminal job has focus to enter Terminal-Normal mode. This key pair is independent of 'termwinkey'. Embedded terminals require +terminal, +job and +channel build features.