I have the opposite situation, I had to willingly stop myself from typing :w while using Word. And I installed the vim extension in vscode, which leads to me typing :w when using someone else's setup.
And you can hook in fzf to it to get a proper list of previous commands all fuzzy matched!! Oh-my-zsh just requires adding fzf to your plugins list (:
I survived for years with just https://github.com/zsh-users/zsh-autosuggestions which is similarly great, but fills a slightly different role. Just start typing and you'll see a faded preview of the most recent command matching & u ctrl+f to autocomplete it. Is gr8
I just got moved to a new team, and my new team lead up arrow spams. I was about to tell him about ctrl-r, but he found his command, and I'm awkward, so I didn't say anything. Maybe next time.
41 Comments
deeply_moving_queef@lemmy.ml · 59 pts · 2y
:q!
Wait. Oh shit.
Hupf@feddit.de · 23 pts · 2y
:q! is for quicksave
r00ty@kbin.life · 4 pts · 2y
I'm sorry, I have to take your first answer.
Morphit@feddit.uk · 2 pts · 2y
Better hope you set undofile and undodir is writable.
Jumuta@sh.itjust.works · 47 pts · 2y
:3
XEAL@lemm.ee · 19 pts · 2y
:3
:3
:3
cryptix@discuss.tchncs.de · 43 pts · 2y
Just :wq there won't be any doubts.
camelCaseGuy@lemmy.world · 12 pts · 2y
:x and be done.
Morphit@feddit.uk · 6 pts · 2y
ZZ whatever
Pilokyoma@mujico.org · 1 pts · 2y
exactly
programmer_belch@lemmy.dbzer0.com · 23 pts · 2y
My muscle memory is too strong from years of vscode before vim so I have
:wmapped toC-srustydrd@sh.itjust.works · 28 pts · 2y
This is Vim's evil mode
AccountMaker@slrpnk.net · 5 pts · 2y
I have the opposite situation, I had to willingly stop myself from typing :w while using Word. And I installed the vim extension in vscode, which leads to me typing :w when using someone else's setup.
programmer_belch@lemmy.dbzer0.com · 2 pts · 2y
I still get lots of jkhl after some lines when I'm trying to move between lines
UNWILLING_PARTICIPANT@sh.itjust.works · 5 pts · 2y
Hissss we're enemies
AlolanYoda@mander.xyz · 18 pts · 2y
Question: why does nobody else save and exit with ":x" or ":x!"?
Parabola@lemmy.world · 20 pts · 2y
Lots of people don’t know. Just like ctrl+r to substring search your command history in bash.
xmunk@sh.itjust.works · 13 pts · 2y
I seriously pity people who don't know ctrl+r that is one of the most important tools for productivity on the cli.
naught@sh.itjust.works · 9 pts · 2y
And you can hook in fzf to it to get a proper list of previous commands all fuzzy matched!! Oh-my-zsh just requires adding
fzfto your plugins list (:I survived for years with just https://github.com/zsh-users/zsh-autosuggestions which is similarly great, but fills a slightly different role. Just start typing and you'll see a faded preview of the most recent command matching & u ctrl+f to autocomplete it. Is gr8
e: clarified what zsh-autosuggest does
catastrophicblues@lemmy.ca · 1 pts · 2y
I’ve found it’s a bit overrated honestly. Usually, I also need the commands before and after something, so I use
history | grep -B N cmdinsteadfiqusonnick@lemmy.blahaj.zone · 4 pts · 2y
ctrl+r to WHAT
IM SO FUCKING PISSED OFF RIGHT NOW
Parabola@lemmy.world · 1 pts · 2y
LOL. I had the same reaction when I found out a decade ago.
Zagorath@aussie.zone · 3 pts · 2y
Your what now‽
voodooattack@lemmy.world · 3 pts · 2y
You can search your bash history with ctrl+r.
Pro tip: install atuin for the best experience.
dandroid@dandroid.app · 3 pts · 2y
I just got moved to a new team, and my new team lead up arrow spams. I was about to tell him about ctrl-r, but he found his command, and I'm awkward, so I didn't say anything. Maybe next time.
loutr@sh.itjust.works · 12 pts · 2y
I guess by the time I came across
:x,:wqwas already too ingrained to bother switching.rustydrd@sh.itjust.works · 10 pts · 2y
No specific reason, but I'd rather be deep in the cold, cold ground before I quit with ":x" instead of ":wq".
Derp@lemmy.ml · 1 pts · 2y
But... But :x is superior because it doesn't overwrite unchanged files with a new modified date :(
eran_morad@lemmy.world · 7 pts · 2y
NegativeLookBehind@kbin.social · 4 pts · 2y
shift zzUNWILLING_PARTICIPANT@sh.itjust.works · 4 pts · 2y
It's such an awkward letter to reach, also I'm stuck in my ways leave me alone
velox_vulnus@lemmy.ml · 4 pts · 2y
WeirdGoesPro@lemmy.dbzer0.com · 1 pts · 2y
What am I, a farmer? /s
Strider@lemmy.world · 1 pts · 2y
I do.
eruchitanda@lemmy.world · 9 pts · 2y
Nah.
ZZ
ndonkersloot@feddit.nl · 3 pts · 2y
This is the way
KickAssDuke@lemm.ee · 9 pts · 2y
They look so lonely. Why not make them kiss?
:W
:M
hakunawazo@lemmy.world · 8 pts · 2y
<esc><esc><esc>
:w
:wq
*many other tabs still open *
:qa
rustydrd@sh.itjust.works · 3 pts · 2y
Hahaha, same!
thepiguy@lemmy.ml · 4 pts · 2y
:wq and re-evaluate my lif- oh wait, I forgot to call the function
psion1369@lemmy.world · 3 pts · 2y
:wa like a boss
UNWILLING_PARTICIPANT@sh.itjust.works · 2 pts · 2y
:w|w|wQuazarOmega@lemy.lol · 2 pts · 2y
The centipede operator