News for hackers. Stuff that matters.
Re:Tell HN: '' in Vim moves cursor to recent line by ndr on Monday August 07, 2023 @09:04AM (#37033868)
It is intuitive if you find regular expressions intuitive.

Note that it's not the only way to go to the end of line.

Home/End bring you to beginning/end of line like anywhere.

`I` is like `^` followed by `i`, brings you before the first non-empty char in insert mode.

`A` is like `$` followed by `a`, brings you after the last char in the line in insert mode (append).

If you'd like to select things press `v` in normal mode and move around with directions or Home/End or ^/$.

All things considered there are only so many keys to have meaningful/semantic shortcuts, you get used to the one you use the most.

There are no comments on this comment yet.