Meaning quit without saving. If no changes have been made, you can :q and that will work. If you’ve fumbled and made any change to the file, you’ll need the ! to get it to quit without saving.
I used emacs when I first started programming because it was what my dad showed me and I always thought it was easier than vim. Then I used a bunch of other things for a while and mostly use vim now and whenever I try to use emacs I am so confused because it makes so much less sense than vim after actually using both
I’ve always preferred vi commands, they make sense and are mostly abbreviations or regex, all the other editors have the strangest commands…
To write and quit in vi :wq
To write and quit in nano: ctrl-o, confirmation dialog about tmp files, ctrl-x, confirmation dialog about exiting… weird feeling that I didn’t actually save the file… reopen, okay it saved, ctrl-x, confirmation dialog, weird feeling that I accidently edited the file…
I used nano for years until I forced myself to learn the basics of vi(m), now whenever something opens nano by default it annoys me and I immediately change the editor to vim 😂
It’s easy.
Escape to exit edit mode : to prefix a command
q to quit
! to confirm
Now emacs… those people are crazy.
Asking someone to quit emacs when they never tried before is a great method to generate random strings for a secure password.
! = Force
Meaning quit without saving. If no changes have been made, you can :q and that will work. If you’ve fumbled and made any change to the file, you’ll need the ! to get it to quit without saving.
I typically just esc :wq
WQ = Write and Quit Q! = quit and do nothing else
Multiline cut, copy, paste is where I forget commands.
I just use visual edit mode. Or 5yy for copy 5 lines. Paste is easy - p.
I’m shit at navigating and anything with the “g” command. I never bothered learning that.
I used emacs when I first started programming because it was what my dad showed me and I always thought it was easier than vim. Then I used a bunch of other things for a while and mostly use vim now and whenever I try to use emacs I am so confused because it makes so much less sense than vim after actually using both
You could always use emacs with evil-mode to have vim key bindings
Evil mode, I like that 🤣🤣🤣.
For me vi was my first experience with it.
So yeah, I think it’s often about what you’re used to
with Emacs you’re never out of Control
I’ve always preferred vi commands, they make sense and are mostly abbreviations or regex, all the other editors have the strangest commands…
To write and quit in vi :wq
To write and quit in nano: ctrl-o, confirmation dialog about tmp files, ctrl-x, confirmation dialog about exiting… weird feeling that I didn’t actually save the file… reopen, okay it saved, ctrl-x, confirmation dialog, weird feeling that I accidently edited the file…
I used nano for years until I forced myself to learn the basics of vi(m), now whenever something opens nano by default it annoys me and I immediately change the editor to vim 😂
Yeah, like Word, you open it, don’t change anything, close, “Do you want to save changes?”… WTF 🤨.