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

Exit Sign

lemmy.ml

message-square
55
link
fedilink
  • cross-posted to:
  • programmerhumor@lemmy.ml
883

Exit Sign

lemmy.ml

cm0002@piefed.world to Programmer Humor@programming.devEnglish · 1 year ago
message-square
55
link
fedilink
  • cross-posted to:
  • programmerhumor@lemmy.ml
  • thagoat@lemmy.sdf.org
    link
    fedilink
    arrow-up
    21
    arrow-down
    8
    ·
    1 year ago

    5 key presses to save and exit. Frickin vim.

    • TragicNotCute@lemmy.world
      link
      fedilink
      English
      arrow-up
      38
      ·
      1 year 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
        ·
        1 year 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
          ·
          1 year 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
            ·
            1 year ago

            Also :x is the same as :wq

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

              deleted by creator

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

                TIL. Ty!

              • josefo@leminal.space
                link
                fedilink
                arrow-up
                1
                arrow-down
                1
                ·
                1 year 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
                  8 months ago

                  deleted by creator

        • ryper@lemmy.ca
          link
          fedilink
          English
          arrow-up
          5
          ·
          1 year 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
      9
      ·
      1 year 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
        ·
        1 year 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
      ·
      1 year 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.

    • NeatNit@discuss.tchncs.de
      link
      fedilink
      arrow-up
      7
      ·
      1 year ago

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

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

      You can use ZZ as a shortcut!

    • MadMadBunny@lemmy.ca
      link
      fedilink
      arrow-up
      1
      ·
      1 year ago

      Fuck it I’m pulling the power cord

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: !programmer_humor@programming.dev

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
    • If the mod doesn’t find it funny, you’re banned. Ha-ha!.. For real: do not use the community for “statements”. There are other places for such content. Keep it chill and funny.
Visibility: Public
globe

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

  • 1.24K users / day
  • 3.62K users / week
  • 6.53K users / month
  • 15K users / 6 months
  • 2 local subscribers
  • 33.5K subscribers
  • 2.55K Posts
  • 84.4K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.14
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org