top 47 comments

sorted by: hot top controversial new old
[–] 27 points 1 year ago* (3 children)

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

  • source
  • hideshow 3 child comments
  • [–] 16 points 1 year ago (1 child)

    how to quit vim

    1. pull computer cord out of wall
  • source
  • hideshow 1 child comment
  • [–] 13 points 1 year ago

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

    vim.keymap.set("ca", "q!", "echo 'not so fast!'")
    
  • source
  • [–] 21 points 1 year ago (6 children)

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

  • source
  • hideshow 6 child comments
  • [–] 24 points 1 year ago (4 children)

    It is an emergency exit not a normal exit.

  • source
  • parent
  • hideshow 4 child comments
  • [–] 10 points 1 year ago

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

  • source
  • [–] 9 points 1 year ago (2 children)
  • [–] 6 points 1 year ago

    ZZ for the win.

  • source
  • [–] 4 points 1 year ago (3 children)

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

  • source
  • hideshow 3 child comments
  • [–] 4 points 1 year ago

    Would it be q a ! ?

  • source
  • [–] 3 points 1 year ago (1 child)

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

    /s with ♡ from an Emacs fan.

  • source
  • hideshow 1 child comment
  • [–] 3 points 1 year ago (1 child)

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

  • source
  • hideshow 1 child comment
  • [–] 12 points 1 year ago (18 children)

    5 key presses to save and exit. Frickin vim.

  • source
  • hideshow 18 child comments
  • [–] 38 points 1 year ago (8 children)

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

  • source
  • parent
  • hideshow 8 child comments
  • [–] 18 points 1 year ago (7 children)

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

  • source
  • parent
  • hideshow 7 child comments
  • [–] 13 points 1 year ago (5 children)

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

  • source
  • parent
  • hideshow 5 child comments
  • [–] 10 points 1 year ago (4 children)
  • [–] 10 points 1 year ago (1 child)

    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!").

  • source
  • parent
  • hideshow 1 child comment
  • [–] 8 points 1 year ago* (3 children)

    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.

  • source
  • parent
  • hideshow 3 child comments
  • [–] 3 points 1 year ago (2 children)

    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

  • source
  • parent
  • hideshow 2 child comments
  • [–] 2 points 1 year ago

    Where can I buy some of these please?

  • source
  • 14 comments in c/programmerhumor@lemmy.ml view that post
    [–] 15 points 1 year ago (8 children)

    Without saving? Bold move.

  • source
  • hideshow 8 child comments
  • [–] 8 points 1 year ago* (4 children)

    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.

  • source
  • parent
  • hideshow 4 child comments
  • [–] 2 points 1 year ago (2 children)

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

  • source
  • parent
  • hideshow 2 child comments
  • [–] 14 points 1 year ago (2 children)
  • [–] 6 points 1 year ago

    So where do I get this sticker?

  • source
  • [–] 3 points 1 year ago

    Leave no trace sign

  • source