Exit Sign

submitted by

https://lemmy.ml/pictrs/image/34679603-c44c-4f8a-b591-7969ab097e08.jpeg

Exit Sign
69
904

Log in to comment

69 Comments

vim something.log
esc
quit
exit
ctrl+x
ctrl+q
shushejehojwhatiwibaln):gufht;vfgs+_&f
reboot
nano something.log

shushejehojwhatiwibaln

fond memories of this distro

Why would a text editor use a key like q to quit, obviously quit is <shift> + ZZ

Thank you very much. I sent this to my coworker who expressed interest in switching to vim :)

how to quit vim

  1. pull computer cord out of wall

Now it's just running on battery

Works as long as you didn't put something silly in your nvim config like

lua vim.keymap.set("ca", "q!", "echo 'not so fast!'")

We’re just quitting without writing? Living very dangerously aren’t we?

It is an emergency exit not a normal exit.

When I accidentally edit a very important file very incorrectly and don't know what it looked like before

The real emergency exit will leave swap files

My initial take on the sticker was the whole “fire exit git commit git push;” I do see this other perspective now

It's advice for how most people end up in vim in the first place. git commit (without -m)

On german QWERTZ keyboards, you need to use shift to make : and !.

On US ones as well, I think they just put the relevant key-symbols and excluded the combination press as they can be assumed.

I have a custom keyboard with a QMK firmware. I enabled something called auto shift. It's the best. Just hold down the key you want shifted, and it auto shifts. I settled for enabling this for capital letters and symbols. So comfortable not to have to press the shift key.

So you hold down the first letter of each sentence longer so that it capitalizes rather than hold shift? That feels like it would completely mess with my flow when typing. Shift just happens naturally for me and I don't register I'm pushing it.

Exactly like that, yes. Or 1 for exclamation point, or 2 for @. Just like on a phone keyboard, with tap and hold for symbols and numbers and such.

I've had this keyboard for a few months now and I didn't enable it exactly for the reasons you mention.

I enabled it a few weeks ago now just to try it, and wow, I though I didn't notice myself pressing the shift key, that it "came naturally". Boy was I wrong. Now whenever I have to use the shift key it feels so cumbersome lol. Typing has become so comfortable now.

I use a ZSA Voyager for reference.

What if you wanna repeat a character?

I spam the key. But that is such an extremely rare case that it's worth the trade-off. The firmware also does allow you to add a key to toggle auto shifting on and off, so I could just add that if I want, but I don't see the need.

If I need to repeat a character many times in a text editor, I'd just use the features of the editor to do so. Helix or Neovim has you covered for repeating characters thousands of times and copying it to the clipboard with a handful of keystrokes if you wish. But what an edge case though.

For double letters, I just double tap like you would normally when typing. 👍

Here in Tarzania we hold the superior and elusive ! key

Same on Dvorak.

Though the custom coder's Dvorak I use while programming has a dedicated ! key. Shift still needed for : though.

Common French W. AZERTY proves itself superior once again.

That's basically all keyboard layouts.

I believe that’s Vim for “Beam us out, Mr. Scott”

[Esc] [Z] [Z]

Or just ZZ for me since I’m rarely in insert mode (I just press esc quickly after making an edit out of habit).

ZZTop could not be reached for comment

Or just ctrl-z to get out of it and "fg" to get back. :)

Just alt+F4, you didn't need to edit that file anyways

yet here in trq i need to press shift in %80 of the keys (that's why i use micro)

the annoying thing about trq is that us is the default everywhere, so you can't press [İ] to type "i", it'll type a " ' " instead >:(

similar things for ":" and "-"

You all exit your editor? How you do the rest of your computing?

/s with ♡ from an Emacs fan.

Emacs really is an excellent desktop environment

5 key presses to save and exit. Frickin vim.

I’m pretty sure that’s close without saving changes. :wq would be needed to save.

To be precise, : means bring up commands, w means save, q means exit, and ! means force

I think it's w = write and q = quit so the letters make more sense

Also :x is the same as :wq

No, it isn't, x writes only when changes have been made, while w writes unconditionally.

Why would you want to write again if no changes were made? It's some obtuse behavior

To be more precise, q means quit the current window. If you've split the window, e.g. with :split or :vsplit, use :qa to quit all windows.

Or 3. Hold shift, press ZZ to save and quit ZQ to quit without saving.

5. Writing and quitting

                      ZZ

ZZ Write current file, if modified, and close the current
window (same as ":x").
If there are several windows for the current file,
only the current window is closed.

                      ZQ

ZQ Quit without checking for changes (same as ":q!").

Since people don't seem to realize that vim has a help system: You can get to this information with :help quit or :help exit

four. the ! is unnecessary. how many actions are there to save and quit in other editors? ctrl, s, ctrl, w is four. move to file, click, move to save, click, move to ×, click is six.

and that's before we replace the wq with x.

If we count the modifier keys:

Vim: esc, shift+:, w, q, Enter

Emacs: ctrl-s, crtl+x ctrl+c, or use the menu options

I use both, but find Emacs much quicker, though vim is easier to learn, though Emacs is easier while you're learning

i've never had the time to get into emacs, would love to though.

also, some layouts have the : on its own key, and if you include the esc in vim commands you're not using vim correctly :)

ESC

Surely you're editing right before exiting, why else would you be saving?

Depends how you count. Both : and ! require shift as well.

Fuck it I’m pulling the power cord

You can use ZZ as a shortcut!

Where can I buy some of these please?

Those went out of style in 1968. Now they're a relic of a forgotten, clunky age, despite the legion of proselytists.

Comments from other communities

Without saving? Bold move.

Its vi. When I use it, I always fuck something up and get tangled up in knots. Best to just bail out and try again later.

Yes, open another terminal and start killing processes

That's the people who use vi to view a file. Watched a guy almost get fired when he shared his screen during an audit and had 'sudo vi /etc/shadow' right there in the command window. Auditor saw it and called him on it. He swore that he was only viewing the file to look for a user's id, but the auditor didn't care, because he could have modified it either on purpose or by accident.

sudo vi /etc/shadow

amateur !

screen sudo vi /etc/shadow

or

sudo screen nano /etc/shadow

if you're neurotypical

Why not cat then? I don't care of his reasons either.

Or less

Exactly, or grep would have worked. Dude just was used to doing this and picked the exact wrong moment to have it on his screen. He earned a finding with that one.

Are you going to save without knowing what changes were made? Bold move.

Every time

as someone very new to git who just uses it to back up their solo projects... i always just closed the window and reopened the directory 😭

More like this for me

:q!
EDITOR=emacs !!

So where do I get this sticker?