- CronyAkatsuki ( @crony@lemmy.cronyakatsuki.xyz ) 46•9 months ago
:w
:w
:w
:w
:w
i
esc
:w
:w
:w
:w
Average day in (neo)vim
- fylkenny ( @fylkenny@feddit.de ) 9•9 months ago
You can use :wq only once
- calzone_gigante ( @calzone_gigante@lemmy.eco.br ) 6•9 months ago
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.
- dukatos ( @dukatos@lemm.ee ) 2•9 months ago
:x
- noeontheend ( @noeontheend@beehaw.org ) 2•9 months ago
My biggest (mostly) irrational internet pet peeve is the proliferation of people suggesting “:wq” when “:x” is strictly better.
- Commiunism ( @Commiunism@lemmy.wtf ) 3•9 months ago
:w before ZZ just to make sure
- anti-idpol action ( @pkill@programming.dev ) 1•9 months ago
not mapping semicolon to colon
lel
- SorryQuick ( @SorryQuick@lemmy.ca ) 1•9 months ago
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”.
- CronyAkatsuki ( @crony@lemmy.cronyakatsuki.xyz ) 2•9 months ago
I’m just used to it and I’m keeping ny time in instert mode at minimum.
- ornery_chemist ( @ornery_chemist@mander.xyz ) 21•9 months ago
:wa!
- intensely_human ( @intensely_human@lemm.ee ) 1•9 months ago
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
- QuazarOmega ( @QuazarOmega@lemy.lol ) 17•9 months ago
We can optimize this further:
unsatisfied = true while(unsatisfied) { key.dispatch( Keyboard::Ctrl, Keyboard::s ) }
…No, there is no instance where
unsatisfied
changes state- Lunya \ she/it ( @backhdlp@iusearchlinux.fyi ) 2•9 months ago
You should just be able to
while(true)
- Octopus1348 ( @Octopus1348@lemy.lol ) 7•9 months ago
It’s a joke.
- Tja ( @Tja@programming.dev ) 2•9 months ago
That sounds like an excuse.
- halfway_neko ( @halfway_neko@lemmy.dbzer0.com ) 4•9 months ago
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.)
- dependencyinjection ( @dependencyinjection@discuss.tchncs.de ) 16•9 months ago
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”.
- Trailblazing Braille Taser ( @0x0@lemmy.dbzer0.com ) 9•9 months ago
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.
- palarith ( @palarith@aussie.zone ) English7•9 months ago
sync
sync
sync
- gazby ( @gazby@lemmy.dbzer0.com ) 4•9 months ago
sync
⬆️↩️
⬆️↩️
😂
- const_void ( @const_void@lemmy.ml ) 7•9 months ago
Ctrl-S? Are you writing code on Windows? 🤮
- Vlyn ( @Vlyn@lemmy.zip ) English3•9 months ago
There’s no Visual Studio for Linux, so yeah… especially as a .NET dev.
Visual Studio Code isn’t the same.
- Underwaterbob ( @Underwaterbob@lemm.ee ) English6•9 months ago
I trust auto save in… Souls games.
- Johanno ( @Johanno@feddit.de ) 6•9 months ago
This is me in eclipse.
Because I used to do the single save and it failed
- summerof69 ( @summerof69@lemm.ee ) 6•9 months ago
I’ve never had to think about that with Intellij IDEA. It just works!
- lud ( @lud@lemm.ee ) 2•9 months ago
I still click Ctrl S occasionally when using pycharm. It’s the law.
- JoYo ( @JoYo@lemmy.ml ) English5•9 months ago
MFRs are saving each keystroke they have access to.
- pythonoob ( @pythonoob@programming.dev ) 5•9 months ago
Dude I save almost every time I type anything. It’s muscle memory at this point.
- BorgDrone ( @BorgDrone@lemmy.one ) 5•9 months ago
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.
- Ethan ( @firelizzard@programming.dev ) English6•9 months ago
Maybe these days. That definitely was not true when I was growing up, or even a decade ago.
- Adanisi ( @Adanisi@lemmy.zip ) English5•9 months ago
C-x C-s
- Tja ( @Tja@programming.dev ) 1•9 months ago
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.
- fu ( @fu@libranet.de ) 4•9 months ago
you CTRL+C CTRL+C CTRL+C CTRL+C CTRL+C
I CTRL+X CTRL+V we are not the same.