diff options
author | glacambre <code@lacamb.re> | 2019-04-08 01:13:43 +0200 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2019-04-08 01:13:43 +0200 |
commit | d928b036dc2be8f043545c0d7e2a2b2285528aaa (patch) | |
tree | c8182e15649721cdb6d2be68439cfcee02253f9f /runtime/doc | |
parent | 11bf89e3b58be1dd534b4ea49b1988150cf7d4b8 (diff) | |
download | rneovim-d928b036dc2be8f043545c0d7e2a2b2285528aaa.tar.gz rneovim-d928b036dc2be8f043545c0d7e2a2b2285528aaa.tar.bz2 rneovim-d928b036dc2be8f043545c0d7e2a2b2285528aaa.zip |
:stopinsert should leave terminal-mode #9856
Problem: Calling :stopinsert from RPC while in terminal-mode does not
go back to normal-mode.
Solution: Implement a check() handler for state_enter(), adapted from
insert_check().
Fix #7807
Diffstat (limited to 'runtime/doc')
-rw-r--r-- | runtime/doc/insert.txt | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/runtime/doc/insert.txt b/runtime/doc/insert.txt index 9de2becf81..fce4d8628e 100644 --- a/runtime/doc/insert.txt +++ b/runtime/doc/insert.txt @@ -1844,7 +1844,8 @@ NOTE: These commands cannot be used with |:global| or |:vglobal|. ":endif", ":for" and ":endfor", ":while" and ":endwhile". *:start* *:startinsert* -:star[tinsert][!] Start Insert mode just after executing this command. +:star[tinsert][!] Start Insert mode (or |Terminal-mode| in a |terminal| + buffer) just after executing this command. Works like typing "i" in Normal mode. When the ! is included it works like "A", append to the line. Otherwise insertion starts at the cursor position. @@ -1854,8 +1855,8 @@ NOTE: These commands cannot be used with |:global| or |:vglobal|. This command does not work from |:normal|. *:stopi* *:stopinsert* -:stopi[nsert] Stop Insert mode as soon as possible. Works like - typing <Esc> in Insert mode. +:stopi[nsert] Stop Insert mode or |Terminal-mode| as soon as + possible. Works like typing <Esc> in Insert mode. Can be used in an autocommand, example: > :au BufEnter scratch stopinsert < |