diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2015-06-14 17:54:31 +0100 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2015-06-14 17:54:31 +0100 |
| commit | 2b42e6030b86f247ec44bbd6a83bd186d01bc06e (patch) | |
| tree | e70a2232d46cc6f033eaacd498ccec947578812a | |
| parent | 19a6b16e25a2de900d0c176bd33d28823d696cec (diff) | |
Document insert mode <a-;> in README
| -rw-r--r-- | README.asciidoc | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/README.asciidoc b/README.asciidoc index 08ad75bb..d464fe82 100644 --- a/README.asciidoc +++ b/README.asciidoc @@ -849,6 +849,25 @@ using *control-x*, followed, by: Completion candidates can be selected using `ctrl-n` and `ctrl-p`. +Escape to normal mode +~~~~~~~~~~~~~~~~~~~~~ + +From insert mode, pressing `<a-;>` allows you to execute a single normal mode +command. This provides a few advantages: + + * The selections are not modified: when leaving insert mode using `<esc>` the + selections can change, for example when insert mode was entered with `a` the + cursor will go back one char. Or if on an end of line the cursor will go back + left (if possible). + + * The modes are nested: that means the normal mode can enter prompt (with `:`), + or any other modes (using `:onkey` or `:menu` for example), and these modes + will get back to the insert mode afterwards. + +This feature is tailored for scripting/macros, as it provides a more predictible +behaviour than leaving insert mode with `<esc>`, executing normal mode command +and entering back insert mode (with which binding ?) + Highlighters ~~~~~~~~~~~~ |
