Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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`.


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?


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.


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.


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.


In Vim, you can also type `D` to save a keystroke.


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...




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: