They just said :wq in school, so thanks for the tip. Hard to believe it saves even when the file hasn’t been changed if you use :wq. What is the use case for that? If the file gets changed in another program and you want to revert??
Edit: Just saw the comment about the modification times being updated.
Heh yeah and it’s not like it makes any difference; they’re effectively the same thing. :wq just updates modification time even if there were no changes – same as doing :w and :q separately – but :x doesn’t. Super intuitive interface 😅
I don’t do a lot of text editing in terminal, but I used to have to at my last job and I always reached for nano and gave instructions fot nano since it’s just pick up and use.
Don’t forget us nanoites. The clearly superior text editor
obligatory xkcd
nanoers just never figured out how to :wq
Use
:x
you plebThey just said
:wq
in school, so thanks for the tip. Hard to believe it saves even when the file hasn’t been changed if you use:wq
. What is the use case for that? If the file gets changed in another program and you want to revert?? Edit: Just saw the comment about the modification times being updated.But what if you wanted to write even if there weren’t changes?
And how often do you want to do that exactly?
Then you use
:wq
habit lol. i use :w a lot so :wq feels like a natural extension
Heh yeah and it’s not like it makes any difference; they’re effectively the same thing.
:wq
just updates modification time even if there were no changes – same as doing:w
and:q
separately – but:x
doesn’t. Super intuitive interface 😅:x
? Real Programmers useZZ
.if you listen closely, you can still hear the terminal bells ringing of those that never managed to ESC
I don’t do a lot of text editing in terminal, but I used to have to at my last job and I always reached for nano and gave instructions fot nano since it’s just pick up and use.
Nano just feels sluggish as soon as you know vim keybindings. Emacs is a bit overkill for some quck edits, but nano is just to basic