Lemmy.VG
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
cm0002@piefed.world to Programmer Humor@programming.devEnglish · 6 months ago

Exit Sign

lemmy.ml

message-square
58
link
fedilink
  • cross-posted to:
  • [email protected]
922

Exit Sign

lemmy.ml

cm0002@piefed.world to Programmer Humor@programming.devEnglish · 6 months ago
message-square
58
link
fedilink
  • cross-posted to:
  • [email protected]
alert-triangle
You must log in or # to comment.
  • Speiser0@feddit.org
    link
    fedilink
    arrow-up
    35
    ·
    6 months ago

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

    • Aatube@kbin.melroy.org
      link
      fedilink
      arrow-up
      12
      ·
      6 months ago

      Here in Tarzania we hold the superior and elusive ! key

    • Zagorath@aussie.zone
      link
      fedilink
      English
      arrow-up
      3
      ·
      6 months ago

      Same on Dvorak.

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

    • Lena@gregtech.eu
      link
      fedilink
      English
      arrow-up
      2
      ·
      6 months ago

      Slovenian ones too

    • Something Burger 🍔@jlai.lu
      link
      fedilink
      arrow-up
      1
      ·
      6 months ago

      Common French W. AZERTY proves itself superior once again.

    • The Ramen Dutchman@ttrpg.network
      link
      fedilink
      English
      arrow-up
      1
      ·
      5 months ago

      That’s basically all keyboard layouts.

  • Ganbat@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    28
    ·
    6 months ago

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

    • tetris11@feddit.uk
      link
      fedilink
      English
      arrow-up
      6
      ·
      6 months ago

      shushejehojwhatiwibaln

      fond memories of this distro

    • Transient Punk@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      6
      ·
      6 months ago

      git güd

    • drspawndisaster@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      3
      ·
      6 months ago

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

  • thesmokingman@programming.dev
    link
    fedilink
    arrow-up
    24
    ·
    6 months ago

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

    • shirro@aussie.zone
      link
      fedilink
      English
      arrow-up
      25
      ·
      6 months ago

      It is an emergency exit not a normal exit.

      • drspawndisaster@sh.itjust.works
        link
        fedilink
        English
        arrow-up
        11
        ·
        6 months ago

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

      • embed_me@programming.dev
        link
        fedilink
        arrow-up
        5
        ·
        6 months ago

        The real emergency exit will leave swap files

        • vrighter@discuss.tchncs.de
          link
          fedilink
          arrow-up
          2
          ·
          6 months ago

          ctrl+z, kill %1

      • thesmokingman@programming.dev
        link
        fedilink
        arrow-up
        1
        ·
        6 months ago

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

    • OddMinus1@sh.itjust.works
      link
      fedilink
      arrow-up
      3
      ·
      6 months ago

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

  • thagoat@lemmy.sdf.org
    link
    fedilink
    arrow-up
    22
    ·
    6 months ago

    5 key presses to save and exit. Frickin vim.

    • TragicNotCute@lemmy.world
      link
      fedilink
      English
      arrow-up
      38
      ·
      6 months ago

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

      • Aatube@kbin.melroy.org
        link
        fedilink
        arrow-up
        18
        ·
        6 months ago

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

        • HeuristicAlgorithm9@feddit.uk
          link
          fedilink
          arrow-up
          13
          ·
          6 months ago

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

          • glitches_brew@lemmy.world
            link
            fedilink
            arrow-up
            10
            ·
            6 months ago

            Also :x is the same as :wq

            • darklamer@lemmy.dbzer0.com
              link
              fedilink
              arrow-up
              14
              ·
              edit-2
              25 days ago

              deleted by creator

              • glitches_brew@lemmy.world
                link
                fedilink
                arrow-up
                6
                ·
                6 months ago

                TIL. Ty!

              • josefo@leminal.space
                link
                fedilink
                arrow-up
                1
                ·
                6 months ago

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

                • darklamer@lemmy.dbzer0.com
                  link
                  fedilink
                  arrow-up
                  6
                  ·
                  edit-2
                  25 days ago

                  deleted by creator

        • ryper@lemmy.ca
          link
          fedilink
          English
          arrow-up
          5
          ·
          6 months ago

          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.

    • villainy@lemmy.world
      link
      fedilink
      arrow-up
      10
      ·
      6 months ago

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

      • ryper@lemmy.ca
        link
        fedilink
        English
        arrow-up
        2
        ·
        6 months ago

        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

    • lime!@feddit.nu
      link
      fedilink
      arrow-up
      8
      ·
      6 months ago

      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.

      • psud@aussie.zone
        link
        fedilink
        English
        arrow-up
        3
        ·
        6 months ago

        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

        • lime!@feddit.nu
          link
          fedilink
          arrow-up
          2
          ·
          6 months ago

          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 :)

          • psud@aussie.zone
            link
            fedilink
            English
            arrow-up
            2
            ·
            6 months ago

            ESC

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

            • lime!@feddit.nu
              link
              fedilink
              arrow-up
              1
              ·
              6 months ago

              not necessarily. you could also have done a yank-paste, or a repeated action, or had a command output into the buffer.

              it’s a good habit to always leave the editor in normal mode between actions, because that makes for a cleaner edit history with smaller changesets in the undo tree.

              …vim is sort of like driving stick in that way.

              • psud@aussie.zone
                link
                fedilink
                English
                arrow-up
                1
                ·
                6 months ago

                Yeah, having used both, my preference is for Emacs, which also comes with the bonus of menu driven ways of doing most things when you’ve been away long enough to have forgotten a keyboard shortcut. I have always needed a cheat sheet handy when away from vim for a few months

                • lime!@feddit.nu
                  link
                  fedilink
                  arrow-up
                  1
                  ·
                  6 months ago

                  i’ve moved to helix, partly to stop myself tinkering and partly because the reversed command model is just easier. plus it has popup helpers.

    • NeatNit@discuss.tchncs.de
      link
      fedilink
      arrow-up
      7
      ·
      6 months ago

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

    • MadMadBunny@lemmy.ca
      link
      fedilink
      arrow-up
      2
      ·
      6 months ago

      Fuck it I’m pulling the power cord

    • Wiz@midwest.social
      link
      fedilink
      arrow-up
      1
      ·
      6 months ago

      You can use ZZ as a shortcut!

  • hamsda@feddit.org
    link
    fedilink
    arrow-up
    20
    ·
    6 months ago

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

  • Lembot_0004@discuss.online
    link
    fedilink
    arrow-up
    17
    ·
    edit-2
    5 months ago

    deleted by creator

  • katy ✨@piefed.blahaj.zone
    link
    fedilink
    English
    arrow-up
    16
    ·
    6 months ago

    how to quit vim

    1. pull computer cord out of wall
    • SkaveRat@discuss.tchncs.de
      link
      fedilink
      arrow-up
      9
      ·
      6 months ago

      Now it’s just running on battery

  • 2910000@lemmy.world
    link
    fedilink
    arrow-up
    12
    ·
    6 months 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!'")
    
  • marlowe221@lemmy.world
    link
    fedilink
    English
    arrow-up
    9
    ·
    6 months ago

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

  • axEl7fB5@lemmy.cafe
    link
    fedilink
    English
    arrow-up
    8
    ·
    6 months ago

    [Esc] [Z] [Z]

    • chonglibloodsport@lemmy.world
      link
      fedilink
      arrow-up
      5
      ·
      6 months ago

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

    • tetris11@feddit.uk
      link
      fedilink
      English
      arrow-up
      2
      ·
      6 months ago

      ZZTop could not be reached for comment

  • Wiz@midwest.social
    link
    fedilink
    arrow-up
    5
    ·
    6 months ago

    ZZ for the win.

  • twopi@lemmy.ca
    link
    fedilink
    English
    arrow-up
    4
    ·
    6 months ago

    Would it be q a ! ?

  • darkreader2636@lemmy.zip
    link
    fedilink
    arrow-up
    3
    ·
    6 months ago

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

    • somerandomperson@lemmy.dbzer0.com
      link
      fedilink
      arrow-up
      1
      ·
      6 months ago

      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 “-”

  • NebLem@lemmy.world
    link
    fedilink
    arrow-up
    3
    ·
    6 months ago

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

    /s with ♡ from an Emacs fan.

    • psud@aussie.zone
      link
      fedilink
      English
      arrow-up
      3
      ·
      6 months ago

      Emacs really is an excellent desktop environment

  • 1984@lemmy.today
    link
    fedilink
    arrow-up
    3
    ·
    6 months ago

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

    • grue@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      6 months ago

      ctrl-z
      $ killall vim

    • deadbeef79000@lemmy.nz
      link
      fedilink
      arrow-up
      1
      ·
      6 months ago

      Just buy a new computer.

    • swab148@lemmy.dbzer0.com
      link
      fedilink
      arrow-up
      1
      ·
      6 months ago

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

Programmer Humor@programming.dev

programmer_humor@programming.dev

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: [email protected]

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 1.18K users / day
  • 5.87K users / week
  • 8.25K users / month
  • 17.7K users / 6 months
  • 8 local subscribers
  • 30.4K subscribers
  • 1.9K Posts
  • 60.6K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.15
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org