pacogens@lemmy.ml to linuxmemes@lemmy.world · 1 year agoI wish :q!lemmy.mlimagemessage-square36fedilinkarrow-up1804arrow-down124
arrow-up1780arrow-down1imageI wish :q!lemmy.mlpacogens@lemmy.ml to linuxmemes@lemmy.world · 1 year agomessage-square36fedilink
minus-squarerovingnothing29@kbin.sociallinkfedilinkarrow-up24·1 year agoExcept it doesn’t work because you’re in edit mode.
minus-squareRickRussell_CA@lemmy.worldlinkfedilinkEnglisharrow-up17·1 year agoAhem, per the cartoon, the genie typed “vi”, which leaves vi in command mode. As an emacs user, I’m ctrl-x ctrl-c with this conversation.
minus-squarefreundTech@feddit.delinkfedilinkarrow-up6·1 year agoAfter noticing that ctrl+c doesn’t work he tried typing exit, which put him in edit mode.
minus-squarekbotc@lemmy.worldlinkfedilinkEnglisharrow-up2·1 year agoUnless you are on a Mac, then ctrl is META, and META+c gets you to the place where you can :q! ESC is just too far to deal with when using vi.
minus-squarePossibly linux@lemmy.ziplinkfedilinkEnglisharrow-up1·edit-21 year agoDon’t try to use the terminal on Mac. Its not linux
minus-squarekbotc@lemmy.worldlinkfedilinkEnglisharrow-up1·1 year agoBut it is UNIX, which Linux is not.
minus-squareAffine Connection@lemmy.worldlinkfedilinkEnglisharrow-up3·1 year agoI have sent emails with “:w” on at least one occasion.
minus-squareClusterfck@lemmy.sdf.orglinkfedilinkarrow-up6arrow-down2·edit-21 year agoOr just use nano and have a built in cheat sheet Edit: I just realized nano is the gen z text editor for Linux…
minus-squareRikudou_Sage@lemmings.worldlinkfedilinkEnglisharrow-up6·1 year agoI’ve used it before gen z was a thing, so no.
minus-squarebuedi@feddit.delinkfedilinkarrow-up2·1 year agoWhy do people just don’t ESC :x? Do I miss something when not using q!?
minus-squareforwardvoid@feddit.nllinkfedilinkarrow-up5·1 year ago:x also writes (same as :wq). :q! is force quit. If you accidentally made changes then :q will give an error and :x will write those changes. So :q! Is you safest bet if you need to gtfo.
minus-squarebuedi@feddit.delinkfedilinkarrow-up1·1 year agoNow that you write it… I use :q! all the time but I did not realize. I guess that is just muscle memory :-)
Except it doesn’t work because you’re in edit mode.
Ahem, per the cartoon, the genie typed “vi”, which leaves vi in command mode.
As an emacs user, I’m ctrl-x ctrl-c with this conversation.
After noticing that ctrl+c doesn’t work he tried typing
exit
, which put him in edit mode.Unless you are on a Mac, then ctrl is META, and META+c gets you to the place where you can :q!
ESC is just too far to deal with when using vi.
Don’t try to use the terminal on Mac. Its not linux
But it is UNIX, which Linux is not.
I have sent emails with “:w” on at least one occasion.
Esc, then :q-t
Or just use nano and have a built in cheat sheet
Edit: I just realized nano is the gen z text editor for Linux…
I’ve used it before gen z was a thing, so no.
Why do people just don’t ESC :x? Do I miss something when not using q!?
:x also writes (same as :wq). :q! is force quit. If you accidentally made changes then :q will give an error and :x will write those changes. So :q! Is you safest bet if you need to gtfo.
ZQ / ZZ ftw.
Now that you write it… I use :q! all the time but I did not realize. I guess that is just muscle memory :-)