docs(terminal): clarify CTRL-\ behavior #15171

This commit is contained in:
zeertzjq 2021-09-10 21:24:08 +08:00 committed by GitHub
parent 4b452d4efb
commit af6948d271
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 7 deletions

View File

@ -1096,8 +1096,9 @@ tag command action in Command-line editing mode ~
==============================================================================
5. Terminal mode *terminal-mode-index*
In a |terminal| buffer all keys except |CTRL-\_CTRL-N| are forwarded to the
terminal job. Use CTRL-\_CTRL-N to go to Normal mode.
In a |terminal| buffer all keys except CTRL-\ are forwarded to the terminal
job. If CTRL-\ is pressed, the next key is forwarded unless it is CTRL-N.
Use |CTRL-\_CTRL-N| to go to Normal mode.
You found it, Arthur! *holy-grail*

View File

@ -454,9 +454,10 @@ Ex mode Like Command-line mode, but after entering a command
command line. |Ex-mode|
*Terminal-mode*
Terminal mode In Terminal mode all input (except |c_CTRL-\_CTRL-N|)
is sent to the process running in the current
|terminal| buffer.
Terminal mode In Terminal mode all input (except CTRL-\) is sent to
the process running in the current |terminal| buffer.
If CTRL-\ is pressed, the next key is sent unless it
is CTRL-N (|CTRL-\_CTRL-N|).
If the 'showmode' option is on "-- TERMINAL --" is shown
at the bottom of the window.

View File

@ -47,8 +47,9 @@ Input *terminal-input*
To send input, enter |Terminal-mode| using any command that would enter "insert
mode" in a normal buffer, such as |i| or |:startinsert|. In this mode all keys
except <C-\><C-N> are sent to the underlying program. Use <C-\><C-N> to return
to normal-mode. |CTRL-\_CTRL-N|
except <C-\> are sent to the underlying program. If <C-\> is pressed, the
next key is sent unless it is <C-N>. Use <C-\><C-N> to return to normal-mode.
|CTRL-\_CTRL-N|
Terminal-mode forces these local options: