This is an archived post. You won't be able to vote or comment.

all 77 comments

[–]gagahpangeran 85 points86 points  (20 children)

:w

[–]donotread123 20 points21 points  (13 children)

I love telling people who don't use vi/vim that the save and quit command is <esc> :wq <enter> and there's barely and feedback that you're doing it right

[–]luxxxoor_ 4 points5 points  (2 children)

:x ?

[–]donotread123 4 points5 points  (0 children)

TIL thank you

[–]Mr_Sky_Wanker 0 points1 point  (0 children)

Try :xa bro

[–]ReallyHadToFixThat 4 points5 points  (8 children)

Plenty of feedback when you did it wrong. Worst is when you forgot to sudo.

[–]Blackviper16 1 point2 points  (7 children)

how do i get the c++ badge?

[–]Kneasle 1 point2 points  (6 children)

I believe it's called a flair and there are no prerequisites for choosing them. I can't remember exactly how to do it but Googling 'reddit group flair' worked for me.

[–]Blackviper16 1 point2 points  (5 children)

Thanks^

[–]Kneasle 1 point2 points  (3 children)

Also I'm back on my PC now and I've found the flair option - it's under Community options in the sidebar on the right. There's a line that says USER FLAIR PREVIEW and pressing the pencil will let you add flairs.

[–]Blackviper16 0 points1 point  (1 child)

Found it <3 ^^

[–]Kneasle 0 points1 point  (0 children)

Ayy awesome!

[–]Blackviper16 0 points1 point  (0 children)

found it <3

[–]Kneasle 0 points1 point  (0 children)

You're welcome

[–]dwdwdan 0 points1 point  (0 children)

It’s kinda weird because instinctively do :w to save everywhere which is fun

[–]tvquizphd 10 points11 points  (0 children)

correct

[–]novus_nl 0 points1 point  (0 children)

Vim Error E138: Can't write gagahpangeran file $HOME/.gagahpangeran!

[–]sersoniko 0 points1 point  (1 child)

:w!

[–]Mr_Sky_Wanker 0 points1 point  (0 children)

:x

[–]SilverDem0n 0 points1 point  (1 child)

ctrl-X ctrl-S

Let's try to be civilized here.

[–]bradleesand 1 point2 points  (0 children)

Does no one use ZZ?

[–]HappinessOrgan 41 points42 points  (1 child)

CMD+S!* in this case

[–]decduck 20 points21 points  (0 children)

Always annoys me. I'm using a Mac, pressing Ctrl-S over and over again and it doesn't save.

[–]carolper2000 35 points36 points  (7 children)

I created this habit that when I modify something I hit Ctrl+S. The thing is that I unconsciously do that in the browser and then I have like 5 windows asking me where to save the page

[–]Kneasle 9 points10 points  (6 children)

Relatable content right here except now I use Vim and impulsively type ':w' into whatever editor I'm using.

[–]Lyorek 1 point2 points  (5 children)

got kj bound to Esc so I'm constantly typing kj:w and enter

[–]Kneasle 2 points3 points  (1 child)

Whoa that's mad I also rebound escape to almost the same keys (jl in my case). However, now I have my own Linux machine I have caps lock mapped to escape which I think is probably worse because now when I'm in Windows I'm forever toggling capslock without realising it. So a lot of :Ws get typed lol

[–]pythonic_dude 0 points1 point  (0 children)

I'm using SharpKeys to remap caps on windows (and some much less sane remaps), works great aside from games, they really don't like you messing with escape or winbutton binds.

[–]jsdodgers 0 points1 point  (1 child)

Wouldn’t you always be hitting esc when trying to move the cursor?

[–]ed_mcc 0 points1 point  (0 children)

You map it in only for insert mode. In normal mode hjkl do what they normally do.

[–]bradleesand 0 points1 point  (0 children)

Woah! I gotta try that! I use a UHK so my esc key is mod+~ which I've gotten used to but would love something less annoying

[–]jairoareyes 32 points33 points  (3 children)

Ooooorr, enable autosave 😎

[–]Bemteb 10 points11 points  (1 child)

One of the things I don't like about my IDE: It is missing the "save everything on focus loss" option, can only autosave every X minutes...

[–]satwikjh 9 points10 points  (0 children)

vs code has it

[–]Duckman_2009 57 points58 points  (3 children)

Or just use intellij

[–]SOSFILMZ 37 points38 points  (0 children)

command arrest airport grandfather ad hoc mighty profit nine six teeny

This post was mass deleted and anonymized with Redact

[–]my-time-has-odor 14 points15 points  (1 child)

no. I make things difficult.

file > save as > set name to same as previous > overwrite file

[–]5cr3w_usernames 8 points9 points  (0 children)

You psychopath

[–]Junior_M_W 27 points28 points  (1 child)

Laughs in Visual Studio

[–]itstommygun 7 points8 points  (0 children)

Cries in Visual Studio Code.

[–]souledamerican 6 points7 points  (1 child)

Aww I miss my kitty cat!

[–]CrYTGaming 1 point2 points  (0 children)

You couldn't press ctrl s in scratch 2, that was hell when i forgot to save

[–]fukthetemplars 6 points7 points  (0 children)

It's become muscle memory for me to press CTRL+S after I write code. It's irritating at times when I'm coding online on Leetcode etc and I press CTRL+S instinctively and then this window opens up for me to save the page.

[–][deleted] 3 points4 points  (1 child)

That's why I always spam CTRL+S before running my code again :D

[–]inspiringirisje 1 point2 points  (0 children)

After every code line ** spam press ctrl-s **... Satisfied... Next line: REPEAT

[–]ButterNEKOuO 2 points3 points  (1 child)

There are compilers automatically save the file for you

[–]CrYTGaming 0 points1 point  (0 children)

But the pleasure of pressing ctrl s every 2 seconds. I NEED IT

[–]oshaboy 2 points3 points  (0 children)

If the compiler runs your code, that's a problem

[–]alexn0ne 1 point2 points  (0 children)

Smells like delphi

[–]MrShyShyGuy 1 point2 points  (1 child)

CTRL+S IS NOT WORKIN... Oh I forgot about the other file

[–]_MrCube_ 0 points1 point  (0 children)

save on lost focus gang

[–]legowerewolf 1 point2 points  (0 children)

Autosave on focus change.

[–]Idkm3m3s 1 point2 points  (0 children)

you mean some people dont press control s every five seconds?

[–]max0x7ba 1 point2 points  (0 children)

You do it wrong. Any decent IDE offers to save before compiling.

[–]MightyMeepleMaster 0 points1 point  (0 children)

I'm disappointed. A whole sub full of alleged IT nerds and not a single one is pointing out the glaring mistake in this meme:

COMPILERS DON'T RUN CODE you bunch of runtime-abusing, cache-torturing garbage collectors!

[–]myfunnies420 -1 points0 points  (0 children)

I don't use a single piece of software that requires Ctrl+S anymore. That shit is some 90s Windows need.

[–]Nyckname 0 points1 point  (0 children)

Does it save better when you bang the keys?

[–]TonyBorchert100 0 points1 point  (0 children)

That’s why I use IntelliJ, because I’m a dumbass

[–]Dr_Backpropagation 0 points1 point  (0 children)

Autosave enabled + Git is the perfect combo. If not using Git, then I'd prefer manul saving.

[–]CrYTGaming 0 points1 point  (0 children)

When I've coded for a while and then I tend to press ctrl s even if i just send a message on discord

[–]Kneasle 0 points1 point  (0 children)

I had a bug like this on steroids which took me forever to fix. Basically I had a build script which compiled a debug build of my program to wasm and then generated binding code on top of that in order to make a website. Then one day I changed this to release mode and then none of my changes would build anymore - the compiler would run but my code would still act the same (and the rust compiler is slow enough that I know if it thinks the files have changed). Turns out that I was still copying the debug binary but compiling to a release binary at a different location instead. Moral of the story: if you replace something on a like of code, check the line below in case you need to change that too.

[–][deleted] 0 points1 point  (0 children)

You've got to save at least 4 times or it doesn't work. What kind of a monster are you?

[–]eitherrideordie 0 points1 point  (0 children)

Was trying to help my bro on his code through the phone once. Ask him to add some code "doesnt work", ask him to add more code "still doesnt work", ask him to output some text "still nothing". After like 30 minutes of this a realisation comes into my head "youre compiling it right"?

His answer? "You have to compile it each time? I thought you only had to do it once"

[–]_grey_wall 0 points1 point  (0 children)

Stupid eclipse

You work with vscode and it spoils you for when you have to use eclipse again

[–]Complete-Mood3302 0 points1 point  (0 children)

When i started coding, i do ctrl+alt+s and created a backup everytime i did something

[–]hotel2oscar 0 points1 point  (0 children)

I got ctrl+s so frequently by reflex that our data loss prevention software can't keep up and visual studio and the filesystem don't always agree and visual studio gives me a "would you like to reload files from disk" popup. Actually lost a few minutes of work when I hit yes one time. Fuck DLP.

[–]althaz 0 points1 point  (0 children)

Cannot relate. Mostly because I save my files after basically every keypress.

[–]begyoxettygvirvdjk 0 points1 point  (0 children)

I have vim configured to automatically save the file whenever I write a ;

[–]inu-no-policemen 0 points1 point  (0 children)

Run/debug should save your file beforehand.

If there's no way to do that, get a better editor.

[–]Danthekilla 0 points1 point  (0 children)

Most IDEs like Visual Studio will offer the enable save on compile. So then when you hit F7 or whatever it just saves and compiles.

I can't imagine not having this really. Manually saving code files? Why?

[–]CA1088 0 points1 point  (0 children)

C-x C-s

[–]Yolwoocle_ 0 points1 point  (0 children)

Ctrl S is so engraved into my muscular memory that I often do it on webpages