this post was submitted on 03 Feb 2024
841 points (97.4% liked)

Programmer Humor

19555 readers
342 users here now

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

founded 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 79 points 9 months ago* (last edited 9 months ago) (7 children)

:w

:w

:w

:w

:w

i

esc

:w

:w

:w

:w

Average day in (neo)vim

[–] [email protected] 1 points 9 months ago* (last edited 9 months ago) (1 children)


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.

[–] [email protected] 2 points 9 months ago

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

[–] [email protected] 1 points 9 months ago* (last edited 9 months ago) (1 children)
[–] [email protected] 2 points 9 months ago

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

[–] [email protected] 2 points 9 months ago (1 children)

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

[–] [email protected] 3 points 9 months ago

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

[–] [email protected] 4 points 9 months ago

:w before ZZ just to make sure

[–] [email protected] -2 points 9 months ago

not mapping semicolon to colon

lel

[–] [email protected] 20 points 9 months ago (4 children)
[–] [email protected] 9 points 9 months ago (1 children)

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.

[–] [email protected] 5 points 9 months ago (1 children)

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

[–] [email protected] 9 points 9 months ago (1 children)

Yes, on classic fps you could spaw a console that will drop down from the top os the screen, some terminal emulators allow you to do that.

I like it because then i have the terminal always open that i just draw from the top of the screen with a keypress

On KDE i do that with Yakuake, and on gnome with tilix

[–] [email protected] 1 points 8 months ago

You can also use Guake on GNOME or basically on any desktop. I've also use it on Cinnamon and it's really nice.

[–] [email protected] 3 points 9 months ago (1 children)
[–] [email protected] 2 points 9 months ago

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

[–] [email protected] 2 points 9 months ago

*per open file

[–] [email protected] 16 points 9 months ago

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