H VIM Command

How to use H Command in Linux VIM editor?

Explanation


This command is used to move the cursor to first line of the file.

Usage:

H

Example:

  • Open the file test.txt using the command
    $ vim test.txt
  • You can view that the cursor is now focussed in the second line
    H VIM Command
  • To move the cursor to first line of the file
    Press H
    Move Cursor to First Line VIM

Ask Questions

Ask Question