Chris Jones  wrote:

> On Mon, Mar 12, 2012 at 12:28:58AM EDT, Gary Johnson wrote:
>
> [..]
>
>> Use the -E and -s options, e.g.,
>>
>>     vim -E -s -n $1 -cTOhtml -c"w! $2" -cq! -cq!
>>
>> See
>>
>>     :help -E
>
> I've been using Vim daily for a few years, but I'd never even heard of
> an ‘extended Ex-mode’ :-)
>
> So I issued the above ‘:help -E’ command, which did not tell me much,
> and proceeded to drill down to ‘*gQ’.. and I found this:
>
> gQ    Switch to "Ex" mode like with "Q", but really behave
>      like typing ":" commands after another.  All command
>      line editing, completion etc. is available.
>      Use the ":vi" command |:visual| to exit "Ex" mode.
>      {not in Vi}
>
> What does ‘really behave like typing ":" commands after another’ exactly
> mean..? another what? Did the writer mean ‘typing ":" commands one after
> the other’ ?? What did he have in mind when he wrote ‘*really* behave..?
> ‘really’.. as opposed to what..? Virtually..?
>
> Failing to understand the documentation, I decided to give this extended
> Ex-mode a go.. and all I could see was the same exact message as when
> you enter regular Ex-mode via the ‘Q’ command: ‘Entering Ex mode. Type
> "visual" to go to Normal mode..’
>
> What additional features or functionality does this mode provide..? how
> does it differ from regular Ex-mode..?
>
> Is this extended Ex-mode described anywhere else in the help files, and
> if so why is it not referenced by a link in the ‘*gQ’ article?
>
> Please clarify.

Hi Chris

Completion only works with -E. Examples:

  # this does not complete when using -e:
  $ vim -NONE -e
  :hi<C-D>

  # this completes successfully with -E
  $ vim -NONE -E
  :hi<C-D>

Keys for command line editing described in ":help cmdline-editing"
also only work with "vim -u NONE -E". Examples:

- moving by words with <C-Left> or <C-Right>
- <C-W> to delete previous word
- etc.

To clarify the doc, how about adding the links to |cmdline-editing|
and |cmdline-completion| in the description of ":help gQ" as in
attached patch?

-- Dominique

-- 
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
diff -r 74686ae0b181 runtime/doc/intro.txt
--- a/runtime/doc/intro.txt	Fri Mar 16 20:16:46 2012 +0100
+++ b/runtime/doc/intro.txt	Sat Mar 17 07:19:51 2012 +0100
@@ -685,6 +685,7 @@
 			like typing ":" commands after another.  All command
 			line editing, completion etc. is available.
 			Use the ":vi" command |:visual| to exit "Ex" mode.
+			See |cmdline-editing| and |cmdline-completion|.
 			{not in Vi}
 
 ==============================================================================

Reply via email to