News for hackers. Stuff that matters.
Re:Helix: A Neovim inspired editor, written in Rust by dm319 on Monday October 10, 2022 @10:37AM (#33151936)
One of the reasons I love n/vi/m is the ergonomic benefit of using keys that are close to your touch typing position. I'm a bit disappointed that beginning and end of line in helix are home and end.
Re:Helix: A Neovim inspired editor, written in Rust by vulcan01 on Monday October 10, 2022 @10:39AM (#33151956)
You can also use `gh` and `gl` for start and end of line (and `gs` for first non-whitespace character in line). These options (among others) pop up when using helix and typing `g`.
Re:Helix: A Neovim inspired editor, written in Rust by dm319 on Monday October 10, 2022 @10:50AM (#33152084)
Ok, so in vim I'd type 'd$' as "delete to end of line". What is the equivalent in helix?

EDIT: while I'm here, where are the sentence and paragraph movements?

Re:Helix: A Neovim inspired editor, written in Rust by Acur on Monday October 10, 2022 @11:20AM (#33152502)
The fastest way to do this in Helix would be `t<Enter>d`.

edit: Paragraph and other object movement/selection is done by the `[`, `]` menu. `]p` for the next paragraph. Surrounds are done by the `m` menu.

Re:Helix: A Neovim inspired editor, written in Rust by dm319 on Monday October 10, 2022 @11:41AM (#33152807)
Thanks, that's helpful.

I get it - so 't' is 'to' and enter is new line. Makes sense.

The menu under `[` looks good, but very code-focused and lacking sentences.

EDIT: I am finding it a bit weird to have 'go to's as different to movements. There isn't a distinction in vim, which is useful. I'm learning that 'ge' will take me to the end of file, but I can't do 'ged' to delete to there.

Re:Helix: A Neovim inspired editor, written in Rust by bobbyskelton41 on Monday October 10, 2022 @05:35PM (#33156665)
You can do vged. Currently ge takes you to the last line, but there is a change planned to take you to the absolute end.
Re:Helix: A Neovim inspired editor, written in Rust by nequo on Tuesday October 11, 2022 @09:17AM (#33162984)
In Vim, you can also type `D` to save a keystroke.
Re:Helix: A Neovim inspired editor, written in Rust by dm319 on Wednesday October 12, 2022 @09:56AM (#33177024)
Not in neovim anymore!

EDIT: Oops, you weren't replying to my 'dd' question. Sorry ignore me. Though if you know the equivalent of 'dd' in helix I'd like to know...