Hacker News new | ask | show | jobs
by hirvi74 23 days ago
TIL about the '0' command. I have been using '^' to accomplish a similar motion for well over a decade now.

For those curious, '^' moves the cursor to the first non-whitespace character of a line, while '0' moves the curious to the absolute beginning of the line.

1 comments

hey, i went the other way! i had been using `0` for years and discovered that `_` goes to the first non-whitespace character of the line (which is most of what i want).

til that '^' does the same as '_', cool! (there's probably some teeny difference between them)

I'm lazy and just use 'w' all the time