aboutsummaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorSean Dewar <seandewar@users.noreply.github.com>2021-10-03 13:57:01 +0100
committerSean Dewar <seandewar@users.noreply.github.com>2021-12-07 11:34:24 +0000
commit28134f4e78819c2bbf0344326b9d44f21eb0d736 (patch)
treef83a2f888368a0302203e04ae09bdbf51c779e6c /runtime
parentafaad8b54ebd2ad4ba2145f4069f5017cace3c8f (diff)
downloadrneovim-28134f4e78819c2bbf0344326b9d44f21eb0d736.tar.gz
rneovim-28134f4e78819c2bbf0344326b9d44f21eb0d736.tar.bz2
rneovim-28134f4e78819c2bbf0344326b9d44f21eb0d736.zip
vim-patch:8.1.0035: not easy to switch between prompt buffer and other windows
Problem: Not easy to switch between prompt buffer and other windows. Solution: Accept CTRL-W commands in Insert mode. Start and stop Insert mode as one would expect. https://github.com/vim/vim/commit/6d41c78e353b630bc1a72cbff9160311d2a81e8c Cherry-pick channel.txt change from: https://github.com/vim/vim/commit/d2f3a8b8787333abf2300d38836b196955f10c00 b_prompt_insert was already ported.
Diffstat (limited to 'runtime')
-rw-r--r--runtime/doc/channel.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/runtime/doc/channel.txt b/runtime/doc/channel.txt
index 656bb10c45..5f376a600e 100644
--- a/runtime/doc/channel.txt
+++ b/runtime/doc/channel.txt
@@ -210,6 +210,11 @@ effective prompt text for a buffer, with |prompt_getprompt()|.
The user can go to Normal mode and navigate through the buffer. This can be
useful to see older output or copy text.
+The CTRL-W key can be used to start a window command, such as CTRL-W w to
+switch to the next window. This also works in Insert mode (use Shift-CTRL-W
+to delete a word). When leaving the window Insert mode will be stopped. When
+coming back to the prompt window Insert mode will be restored.
+
Any command that starts Insert mode, such as "a", "i", "A" and "I", will move
the cursor to the last line. "A" will move to the end of the line, "I" to the
start of the line.