60 points

:q!

Wait. Oh shit.

permalink
report
reply
24 points

:q! is for quicksave

permalink
report
parent
reply
5 points

I’m sorry, I have to take your first answer.

permalink
report
parent
reply
2 points

Better hope you set undofile and undodir is writable.

permalink
report
parent
reply
48 points

:3

permalink
report
reply
19 points
*

:3

:3

:3

permalink
report
parent
reply
9 points

:3
:3
:3
:3
:3
:3
:3
:3
:3
:3
:3
:3
:3
:3
:3
:3
:3
:3
:3
:3
:3
:3
:3
:3

permalink
report
parent
reply
44 points

Just :wq there won’t be any doubts.

permalink
report
reply
12 points

:x and be done.

permalink
report
parent
reply
6 points

ZZ whatever

permalink
report
parent
reply
1 point

exactly

permalink
report
parent
reply
24 points

My muscle memory is too strong from years of vscode before vim so I have :w mapped to C-s

permalink
report
reply
29 points

This is Vim’s evil mode

permalink
report
parent
reply

Hissss we’re enemies

permalink
report
parent
reply
5 points

I have the opposite situation, I had to willingly stop myself from typing :w while using Word. And I installed the vim extension in vscode, which leads to me typing :w when using someone else’s setup.

permalink
report
parent
reply
2 points

I still get lots of jkhl after some lines when I’m trying to move between lines

permalink
report
parent
reply
19 points

Question: why does nobody else save and exit with “:x” or “:x!”?

permalink
report
reply
20 points

Lots of people don’t know. Just like ctrl+r to substring search your command history in bash.

permalink
report
parent
reply
13 points
*

I seriously pity people who don’t know ctrl+r that is one of the most important tools for productivity on the cli.

permalink
report
parent
reply
9 points
*

And you can hook in fzf to it to get a proper list of previous commands all fuzzy matched!! Oh-my-zsh just requires adding fzf to your plugins list (:

I survived for years with just https://github.com/zsh-users/zsh-autosuggestions which is similarly great, but fills a slightly different role. Just start typing and you’ll see a faded preview of the most recent command matching & u ctrl+f to autocomplete it. Is gr8

e: clarified what zsh-autosuggest does

permalink
report
parent
reply
1 point

I’ve found it’s a bit overrated honestly. Usually, I also need the commands before and after something, so I use history | grep -B N cmd instead

permalink
report
parent
reply
4 points

ctrl+r to WHAT

IM SO FUCKING PISSED OFF RIGHT NOW

permalink
report
parent
reply
1 point

LOL. I had the same reaction when I found out a decade ago.

permalink
report
parent
reply
3 points

I just got moved to a new team, and my new team lead up arrow spams. I was about to tell him about ctrl-r, but he found his command, and I’m awkward, so I didn’t say anything. Maybe next time.

permalink
report
parent
reply
12 points

I guess by the time I came across :x, :wq was already too ingrained to bother switching.

permalink
report
parent
reply
10 points
*

No specific reason, but I’d rather be deep in the cold, cold ground before I quit with “:x” instead of “:wq”.

permalink
report
parent
reply
1 point

But… But :x is superior because it doesn’t overwrite unchanged files with a new modified date :(

permalink
report
parent
reply
6 points

Whoa. I’ve been doing :wq for like 25 years and never new about :x.

permalink
report
parent
reply
5 points

shift zz

permalink
report
parent
reply

It’s such an awkward letter to reach, also I’m stuck in my ways leave me alone

permalink
report
parent
reply
4 points
*
Deleted by creator
permalink
report
parent
reply
1 point

What am I, a farmer? /s

permalink
report
parent
reply
1 point

I do.

permalink
report
parent
reply

Programmer Humor

!programmerhumor@lemmy.ml

Create post

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

  • Posts must be relevant to programming, programmers, or computer science.
  • No NSFW content.
  • Jokes must be in good taste. No hate speech, bigotry, etc.

Community stats

  • 5.3K

    Monthly active users

  • 1.5K

    Posts

  • 33K

    Comments