:w
:w
:w
:w
:w
i
esc
:w
:w
:w
:w
Average day in (neo)vim
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.
:w
:w
:w
:w
:w
i
esc
:w
:w
:w
:w
Average day in (neo)vim
You can use :wq only once
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.
:x
My biggest (mostly) irrational internet pet peeve is the proliferation of people suggesting ":wq" when ":x" is strictly better.
:w before ZZ just to make sure
:wa!
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
We can optimize this further:
unsatisfied = true
while(unsatisfied) {
key.dispatch(
Keyboard::Ctrl,
Keyboard::s
)
}
..No, there is no instance where unsatisfied
changes state
You should just be able to while(true)
It's a joke.
That sounds like an excuse.
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.)
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”.
Ctrl+s means "stop the presses" to VT100 terminal emulators and you have to press ctrl+q to resume. Key combinations from a different era.
sync
sync
sync
sync
⬆️↩️
⬆️↩️
😂
Ctrl-S? Are you writing code on Windows? 🤮
There's no Visual Studio for Linux, so yeah.. especially as a .NET dev.
Visual Studio Code isn't the same.
I've never had to think about that with Intellij IDEA. It just works!
I still click Ctrl S occasionally when using pycharm. It's the law.
I trust auto save in... Souls games.
This is me in eclipse.
Because I used to do the single save and it failed
MFRs are saving each keystroke they have access to.
Dude I save almost every time I type anything. It's muscle memory at this point.
Tell me you use Windows without telling me you use Windows.
Meanwhile I just reboot my Mac without bothering to save anything and everything just restores as it was, even new documents that were never saved. It works so well I don’t even think about it anymore.
Maybe these days. That definitely was not true when I was growing up, or even a decade ago.
C-x C-s
I hate editors that cut the current line if you do C-x with nothing selected. Always do C-x C-s, even in VSCode and KDevelop.
I just can't stand Kate showing me a little orange bar meaning I have not saved the changes yet. The bar must be green! I am a slave to the green bar. The white dot in vscode (I use an open source build) is a bit more tolerable, but whenever I notice it I HAVE to save the file.
Kate
Ah! Another fellow coder of culture!
It's such a good text editor.
Cost/benefit
Manually saving will save a lot more time than it not saving
Closing tabs and one of them asks if you want to save changes
you CTRL+C CTRL+C CTRL+C CTRL+C CTRL+C
I CTRL+X CTRL+V we are not the same.
Ctrl+s+s+s+s+s
LOL good point about just not releasing Ctrl.
The chances are non-zero that somebody out there attempts to release and press ctrl+s at the exact same time over and over like they're hammering out Beethoven's 5th. XD
I’m the same way. I think it’s just a matter of being conditioned to manually save for the majority of my computing life.
Why would you ever use an editor that could lose your work unless you save? Vim users will never understand that.
Actually vim has swap files which it saves to when you make any edit, whether you save the change or not, meaning you shouldn't lose any work even if you kill -9 vim on unsaved work.
Yes, exactly. Why would anyone ever use an editor that doesn't work like that, where unsaved work could disappear? I can't understand that.
Oh I get you. No idea tbh.
autosave is no good if you have live reload imo
I just do a full rebuild. Saves all files.
Ok here's a question I should have asked like way sooner.
In Ubuntu (and similar distros), is there a hotkey to immediately kill the process? Like CTRL-C but harsher.
If you’re using X11, you can use xkill: https://en.m.wikipedia.org/wiki/Xkill
You can bind it to a key in gnome/kde (not sure how they handle custom keybinds. Otherwise add a call to xbindkeys to your .bashrc or equivalent). It kills any window you want, responsive or not.
As for the terminal, I don’t think you can send SIGKILL, but ctrl + \ will result in a core dump if you’re using bash.
My PC has a dedicated key to kill all processes.
sudo poweroff?
Meanwhile, me over here with the self-doubt slamming ctrl-z
i just store everything in google drive and let chance take over