:w
:w
:w
:w
:w
i
esc
:w
:w
:w
:w
Average day in (neo)vim
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.
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”.
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.
Some of us have PTSD from losing work back in the day. Now it’s just habit.
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.
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.
<esc> <esc> <esc> <esc> <esc> <esc> :wa! <cr>
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”.
We can optimize this further:
unsatisfied = true
while(unsatisfied) {
key.dispatch(
Keyboard::Ctrl,
Keyboard::s
)
}
…No, there is no instance where unsatisfied
changes state