Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Except, if you hit Ctrl+C, you don't have to hit ESC. You literally type what it tells you and it works.

The only way the above would work as suggested is if the person hit an insert mode key first after having typed Ctrl+C.



Weelll. The problem is that the "quit" command has an insert mode key in it. So it's quite possible to get stuck like a poster above says- enter macro recording, then insert mode, then write the letter "t".

On the other hand that only happens if you type "quit" without the colon and the message makes it very clear that the colon is part of the text you must enter:

  Type  :quit<Enter>  to exit Vim
See all that whitespace? It's very hard to think the colon goes to the "Type" bit.

So you can get stuck in a dubm situation but it's not terribly easy.


See all that whitespace? It's very hard to think the colon goes to the "Type" bit.

Except, logically, why would they bother to specially call out <Enter>, a whitespace character, but not the spaces as well if they intended the user to type them?

I can't think of any obvious, safe way to display text that a user should type that isn't subject to possible misinterpretation in the single line of output available.


Alright, but if we're being so scholastic it should be said that you can misinterpret any set of instructions and in this case, squinting at the command line a couple of times to make sure you got the command right is all it should take you to get it right.




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: