0
The
Motion
The 0 command in Vim
Motion
col 1 / bol
Move to column 1 (absolute beginning of line), regardless of indentation. Unlike
^ which stops at the first non-blank character. Often remapped: nnoremap 0 ^.Examples
0(go to col 1)0dw(delete from start)d0(delete back to col 1)
Reference
Learn every Vim command visually — right in your browser.
Add Vim What? to Chrome — FreeAlso on Firefox.
Related motions