From 9c2099d5850a6a434f7269913d316d57da1362e2 Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Mon, 4 Jun 2018 02:06:32 +0200 Subject: Ex mode: use getexline() instead of getexmodeline() This changes Ex mode (Q, -e) to work like Vim's "improved Ex mode" (gQ, -E). That brings some small behavior differences, but should not impact most Ex scripts (unless, for example, they depend on mappings being disabled--but that can be solved for -e by skipping user config). Before this change: * the screen test hangs. After this change: * Q acts like gQ. * -e/-es differs from -E/-Es only in its treatment of stdin. This moves towards potentially removing getexmodeline(). (HINT: That does NOT mean "removing Ex mode", it means removing the Vi-compatible Ex mode, which differs from Vim's "improved Ex mode" only in some minor details (e.g. mappings are disabled).) ref #1089 :-)~ --- runtime/doc/vim_diff.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'runtime/doc/vim_diff.txt') diff --git a/runtime/doc/vim_diff.txt b/runtime/doc/vim_diff.txt index 5394414947..0035e15be1 100644 --- a/runtime/doc/vim_diff.txt +++ b/runtime/doc/vim_diff.txt @@ -315,10 +315,15 @@ Macro/|recording| behavior macros and 'keymap' at the same time. This also means you can use |:imap| on the results of keys from 'keymap'. +Normal commands: + |Q| is the same as |gQ| + Options: 'ttimeout', 'ttimeoutlen' behavior was simplified Startup: + |-e| and |-es| invoke the same "improved Ex mode" as -E and -Es. + |-E| and |-Es| reads stdin as text (into buffer 1). |-s| reads Normal commands from stdin if the script name is "-". Reading text (instead of commands) from stdin |--|: - works by default: "-" file is optional @@ -465,4 +470,4 @@ TUI: always uses 7-bit control sequences. ============================================================================== - vim:tw=78:ts=8:noet:ft=help:norl: + vim:tw=78:ts=8:sw=2:noet:ft=help:norl: -- cgit