$ VIM Command

How to use $ Command in Linux VIM editor?

Explanation


This Dollar command is used to move the cursor to end of the line.

Usage:

$

Example:

  • Open the file test.txt using the command
    $ vim test.txt
  • You can view that the cursor is now focused on the word 'largest'.
    $ Dollar Vim Command
  • To move the cursor to end of the current line
    Press $
    Move Cursor to End Line
  • To move the cursor to last line of the file
    Enter :$
    $ Dollar Vim Command Editor

Ask Questions

Ask Question