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.
Indeed. Make sure to start it with hx --tutor the first time around so you know how to quit :)
And no matter what you do when giving it a try do it in a time and place where you can go at least a week without vi as the command grammar is close yet different enough to completely confuse your muscle memory, you don’t want to mix them up (helix uses a strict selection-action command set so you get ‘wd’ instead of ‘dw’ and stuff).
I’m a vim and emacs user for some decades already. I had this urge one day to try and work with helix. It kind of misses some things such as file manager or editorconfig support. Nine months later I’m still using helix. It still misses these things, but I really started to like how I don’t need any plugins to work with it and I need about five lines of configuration to have a usable editor. Probably going to continue using it.
And it is written in Rust, which is my main language and I can just jump in to the editor source and fix things if needed.
I miss magit and org from emacs a lot though. Every time I need to write an article, I do it in emacs.
What even is emacs
An extremely extensible text editor, there’s jokes that it can do literally anything, you can play music, watch video, etc.
It’s often at war with the cult of vi and the church of emacs.
alt.religion.emacs
Join us 👀
I’ve thinking of using Usenet. What client would you recommed for mobile and desktop?
Built-in Emacs news reader Gnus for desktop, obviously. I don’t use Usenet on mobile, so idk.
Aw man, now I have to download an whole OS just to use Usenet? /s
I know, I know. But nobody made a news reader for BIOS/UEFI yet, so…
Don’t forget us nanoites. The clearly superior text editor
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.:x
? Real Programmers useZZ
.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 😅if you listen closely, you can still hear the terminal bells ringing of those that never managed to ESC
obligatory xkcd
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.
You should really convert to helixism, the latest messianic update to the cult of vi.
It’s probably this, for all of you whou didn’t know Helix before, like me: https://helix-editor.com/
Indeed. Make sure to start it with
hx --tutor
the first time around so you know how to quit :)And no matter what you do when giving it a try do it in a time and place where you can go at least a week without vi as the command grammar is close yet different enough to completely confuse your muscle memory, you don’t want to mix them up (helix uses a strict selection-action command set so you get ‘wd’ instead of ‘dw’ and stuff).
I’m a vim and emacs user for some decades already. I had this urge one day to try and work with helix. It kind of misses some things such as file manager or editorconfig support. Nine months later I’m still using helix. It still misses these things, but I really started to like how I don’t need any plugins to work with it and I need about five lines of configuration to have a usable editor. Probably going to continue using it.
And it is written in Rust, which is my main language and I can just jump in to the editor source and fix things if needed.
I miss magit and org from emacs a lot though. Every time I need to write an article, I do it in emacs.
A self-documenting, extensible lisp computing environment that uses text buffers as its main data format.