Skip to main content
i didn't know about <kbd>^</kbd>, <kbd>_</kbd> does the job too.
Source Link

As lots of people have said:

  • $ gets you to the end of the line

but also:

  • ^ or _ gets you to the first non-whitespace character in the line, and
  • 0 (zero) gets you to the beginning of the line incl. whitespace

As lots of people have said:

  • $ gets you to the end of the line

but also:

  • ^ gets you to the first non-whitespace character in the line, and
  • 0 (zero) gets you to the beginning of the line incl. whitespace

As lots of people have said:

  • $ gets you to the end of the line

but also:

  • ^ or _ gets you to the first non-whitespace character in the line, and
  • 0 (zero) gets you to the beginning of the line incl. whitespace

As lots of people have said:

  • $ -$ gets you to the end of the line

but also:

  • ^ -^ gets you to the first non-whitespace character in the line, and
  • 00 (zero) - gets you to the beginning of the line incl. whitespace

As lots of people have said:

  • $ - gets you to the end of the line

but also:

  • ^ - gets you to the first non-whitespace character in the line, and
  • 0 (zero) - gets you to the beginning of the line incl. whitespace

As lots of people have said:

  • $ gets you to the end of the line

but also:

  • ^ gets you to the first non-whitespace character in the line, and
  • 0 (zero) gets you to the beginning of the line incl. whitespace
Source Link
Rob Wells
  • 37.3k
  • 14
  • 85
  • 147

As lots of people have said:

  • $ - gets you to the end of the line

but also:

  • ^ - gets you to the first non-whitespace character in the line, and
  • 0 (zero) - gets you to the beginning of the line incl. whitespace