[vim/vim] Can we do something about "How to exit the Vim editor?" (#1719)

89 views
Skip to first unread message

Roy Wellington Ⅳ

unread,
May 23, 2017, 2:31:38 PM5/23/17
to vim/vim, Subscribed

See this SO question for reference.

The questioner is not asking a very well formed question here, to begin with, which makes things hard. First, he seems to be seeing the prompt (but misquotes it), which strongly implies he's in normal mode, where following the prompt would work. But then we wouldn't be on SO. The remainder of the question implies that he ends up in insert mode somehow, prior to attempting to follow the directions in the prompt. The questioner fails to describe exactly what gets inserted, which could also help.

The best guess comes from a co-worker: the questioner misinterprets the : as being not part of the directions, i.e., the prompt is interpreted as "Type: quit<Enter> to exit Vim".

Would perhaps coloring the keystrokes to offset them from the prompt help?

I know where the prompt is in the source, but I don't know how to do color at that point. Also, note that the message is internationalized, so that makes it a bit trickier. It seems that the typesetting is not very consistent either — some locales use less space, some use more, some use different amounts on either side of the prompt, ES and EO even use quotes, the word "Enter" is sometimes i18n'd, but mostly not…


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub

Colin McIntosh

unread,
May 23, 2017, 10:03:17 PM5/23/17
to vim/vim, Subscribed

Could we consider replacing the text with Type <Escape>:quit<Enter> to exit Vim ? I think it would make it more clear that you need to enter normal mode and resolves the issue of the : character being misinterpreted as part of the Type prompt

alburthoffman

unread,
May 23, 2017, 10:12:16 PM5/23/17
to vim/vim, Subscribed

I agree withType <Escape>:quit<Enter> to exit Vim

especially for newbies, it wont make them misunderstand.

Tony Mechelynck

unread,
May 24, 2017, 3:20:27 AM5/24/17
to vim_dev, reply+00b1d198ddb884e2cf60262779aa075a7f57a4d...@reply.github.com, vim/vim, Subscribed
The attached screenshot is what I see, with two spaces left of the
colon and none right of it. It never came to my mind that to leave Vim
I was to type anything other than a colon followed by the letter q
then the Enter key.

Best regards,
Tony.
vimsplash.png

vim-dev ML

unread,
May 24, 2017, 3:20:54 AM5/24/17
to vim/vim, vim-dev ML, Your activity
On Tue, May 23, 2017 at 8:31 PM, Roy Wellington Ⅳ
<vim-dev...@256bit.org> wrote:
The attached screenshot is what I see, with two spaces left of the
colon and none right of it. It never came to my mind that to leave Vim
I was to type anything other than a colon followed by the letter q
then the Enter key.

Best regards,
Tony.

Bram Moolenaar

unread,
May 24, 2017, 7:08:46 AM5/24/17
to vim/vim, vim-dev ML, Comment

> I agree with` Type <Escape>:quit<Enter> to exit Vim`

>
> especially for newbies, it wont make them misunderstand.

The message only shows when pressing CTRL-C in Normal mode.
In Insert mode CTRL-C goes to Normal mode. Thus typing CTRL-C twice
also works to get the message.

--
ARTHUR: Old woman!
DENNIS: Man!
ARTHUR: Man. I'm sorry. Old man, What knight live in that castle over there?
DENNIS: I'm thirty-seven.
"Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

/// Bram Moolenaar -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///


You are receiving this because you commented.

Roy Wellington Ⅳ

unread,
May 24, 2017, 5:51:18 PM5/24/17
to vim/vim, vim-dev ML, Comment

(Hopefully I can reply to you Tony from GitHub…)

The attached screenshot is what I see

My impression was that the SO post was discussing the message that appears if you hit ^C (SIGINT) while in normal mode. (Or, if you hit it twice while in insert mode; the first taking you back to normal mode.) I had forgotten about the one on the introduction screen; the SO post's wording is closer to the ^C one, however.


You are receiving this because you commented.

Christian Brabandt

unread,
Jun 6, 2017, 5:57:32 AM6/6/17
to vim/vim, vim-dev ML, Comment

Closed #1719.


You are receiving this because you commented.

Christian Brabandt

unread,
Jun 6, 2017, 5:57:32 AM6/6/17
to vim/vim, vim-dev ML, Comment

fixed as of (8.0.0609)[https://github.com/vim/vim/releases/tag/v8.0.0609]


You are receiving this because you commented.

Reply all
Reply to author
Forward
0 new messages