zero VIM Command

How to use zero Command in Linux VIM editor?


This command is used to move the cursor to starting of the line.


0 (Zero)


  • Open the file test.txt using the command
    $ vim test.txt
  • You can view that the cursor is now focussed on the word 'largest' now.
    0 (Zero) VIM Command
  • To move the cursor to first position of the current line
    Press 0
    Move Cursor to Starting Line VIM
  • To move the cursor to staring position of the file
    Enter :0
    0 (Zero) VIM Command Editor

Ask Questions

Ask Question