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

hjkl are definitely table stakes for a vim-ish editor, but I also can’t live without 0 and $. Making me move my hand over to find home and end misses the point of hjkl entirely.


I’m just learning helix, but I believe you can move to the end of the line with gl, and i’m sure there’s an equivalent for the beginning.


Is there an alternative for g0, g$ and gj, gk? It will act on wrapped lines like they're separate.


I opened helix to check it for you. Pressed `g` and had a little popup tell me that following with `h` = line start, `l` = line end, `s` first non-blank in line (plus ~15 other options).

My hx doesn't wrap lines, so didn't check `gj` and `gk`.


If you don't wrap lines how do you write text?


Good question, and I don't think my answer will satisfy your needs, but it does mine.

The only long form text that I ever write is in markdown. I do miss the `gq` command from vim, but in general I just do a single line break after every dot. Markdown ignores a single line break in the middle of a paragraph, so it works out okay. I even found it almost convenient to edit text like that because it's easy to move lines around.

In code documentation (which I do a lot of), I have to manually wrap the lines of course (just like anyone else). That's where I miss `gq` the most. :)




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

Search: