As a vim noob, I needed to look it up [0]. ZZ saves the current file if modified and closes it. ZQ closes it without saving. Thank you, that will save me a few seconds per year.
Why the French way? I don't get it and I am very curious :-)
[0] https://unix.stackexchange.com/questions/93144/exit-vim-more...
Re:How to Exit Vim
by throwaway744678 on Wednesday January 08, 2020 @04:09AM
(#21989731)
(Wild guess) If you pronounce the command aloud - "Zee-zee" - it translates to "Willy" (penis word used by children) in French. Easy mnemonic.
>Zee-zee
Only if you're American. Otherwise: "zed-zed". :)
I'd have thought it's because the French keyboard layout is arranged with the "Z" in place of the "W" on a qwerty layout
Maybe because of our (I very much include myself) infamous inability to pronounce correctly the sound "th" and making it sound like "z" instead.
Ah yes, zis is it. Fank you.
> or the French way - ZZ
HOW DID I NOT KNOW THIS
People explained that it was [Shift] and [Z], which of course for you would have produced a lowercase 'z'.
lol
took me a while to get it
These would ruin the joke.
Re:How to Exit Vim
by thrwaway69 on Wednesday January 08, 2020 @03:04AM
(#21989356)
yeah, I was poking at the joke :)
Re:How to Exit Vim
by justinzollars on Wednesday January 08, 2020 @02:13AM
(#21989069)
create a pull request
or the French way - ZZ