79 points
*

:w

:w

:w

:w

:w

i

esc

:w

:w

:w

:w

Average day in (neo)vim

permalink
report
reply
20 points

You can use :wq only once

permalink
report
parent
reply
16 points

So choose wisely. All other editor instances must remain open forever.

permalink
report
parent
reply
9 points

I use quake style terminals, and often start writing a file and completely forget about it and turn off the computer, and only remember what i left behind when i find the random recovery files around, so :w a lot is quite useful for me.

permalink
report
parent
reply
5 points

Quake? The FPS? I’m confused, though I knew a little about Linux

permalink
report
parent
reply
3 points

:x

permalink
report
parent
reply
2 points

My biggest (mostly) irrational internet pet peeve is the proliferation of people suggesting “:wq” when “:x” is strictly better.

permalink
report
parent
reply
2 points

*per open file

permalink
report
parent
reply
4 points

:w before ZZ just to make sure

permalink
report
parent
reply
2 points

Is there any reason to use :w other than it being the default? I have mine mapped to CTRL-S and it makes sure to keep me in insert mode if I was in insert mode. Feels way faster and easier to spam than the 4 key presses it takes to execute “:w”.

permalink
report
parent
reply
3 points

I’m just used to it and I’m keeping ny time in instert mode at minimum.

permalink
report
parent
reply
2 points

Make all changes

:wq!

Force that bitch!

permalink
report
parent
reply
1 point
*


This will allow you to ctrl+s to save. I tried to add this in a backtick code line/block but it removes part of the syntax.

permalink
report
parent
reply
2 points

Sorry but I’m already used to :w stoo much and a lot faster with it than ctrl+s

permalink
report
parent
reply
1 point
*

permalink
report
parent
reply
2 points

Requires me to use my pibky for ctrl. I have esc remaped to caps so its faster for ke to just do :w

permalink
report
parent
reply
-2 points

not mapping semicolon to colon

lel

permalink
report
parent
reply
40 points

Some of us have PTSD from losing work back in the day. Now it’s just habit.

permalink
report
reply
4 points

It’d be great if there were side kind of feedback, like the cursor quickly flashing a “C” or something… anything to let you know the operation occurred; better yet, was successful.

permalink
report
parent
reply
4 points

Check for an asterisk after the file name (in the tab/title bar), it means “unsaved changes”.

permalink
report
parent
reply
4 points

I actually disagree from a systems engineer perspective: The program doesn’t actually know shit if those bits hit any permanent medium, just that the OS told them “I’ll take care of it” it could be sitting in a write back cache when you save, see the “write complete” and rip the power and that’s all gone now. Basically, I don’t like promising durability when it’s not really there.

permalink
report
parent
reply
31 points
*

<esc> <esc> <esc> <esc> <esc> <esc> :wa! <cr>

permalink
report
reply
2 points

The old school programmer right here! All we’re missing is someone typing git commit -am “updates and stuff”

permalink
report
parent
reply
1 point

Basically a Jackie Chan fight scene, complete with somebody rolling a carriage at him and him kicking it back to pin them against the wall

permalink
report
parent
reply
25 points

When you do this using Word online it be like “chill dude we autosave here, we got you” and I’m like “brother I do not trust you”.

permalink
report
reply
7 points

You are wise beyond your years.

permalink
report
parent
reply
24 points

We can optimize this further:

unsatisfied = true
while(unsatisfied) {
    key.dispatch(
        Keyboard::Ctrl,
        Keyboard::s
    )
}

…No, there is no instance where unsatisfied changes state

permalink
report
reply
4 points

You should just be able to while(true)

permalink
report
parent
reply
9 points

It’s a joke.

permalink
report
parent
reply
3 points

That sounds like an excuse.

permalink
report
parent
reply
4 points

Don’t worry, most modern brains have a builtin jit compiler, so when a habit starts to form, the check will be optimised out. (It saves excess neurons from being generated.)

permalink
report
parent
reply

Programmer Humor

!programmer_humor@programming.dev

Create post

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

Community stats

  • 3.3K

    Monthly active users

  • 1K

    Posts

  • 38K

    Comments