3 ms·
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 h
by vulcan01 4y ago
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`.
- dm319 4y agoOk, 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?
- Acur 4y agoThe 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.
- dm319 4y agoThanks, 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.
- bobbyskelton41 4y agoYou can do vged. Currently ge takes you to the last line, but there is a change planned to take you to the absolute end.
- deleted 4y ago[deleted]
- nequo 4y agoIn Vim, you can also type `D` to save a keystroke.
- dm319 4y agoNot 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...