How to: move the cursor to the first non-whitespace (non-blank) character on the current line in Vim
- use:
^
(shift + 6) This moves the cursor to the first non-blank character of the current line. _
(underscore) This also moves the cursor to the first non-blank character on the same line the cursor is on.
By the way, the 0
command moves to the absolute start of the line, including any leading whitespace.