Finding a specific line

One way to find a specific line in the document is the following:

  1. Press Ctrl+L.  The Line number input area appears.
  2. Enter the number of the line you want to go to and press Enter.  The Line number input area closes and the cursor moves to the chosen line.

You can also use the editor locate command to find a specific line.  For example:

  1. Press Esc to open the editor command line area.
  2. Enter the following editor command in the command line area:
    locate line n
    where n is the number of the line you want to go to.
  3. Press Esc again to leave the command line input area.  The cursor is now at the chosen line.

Alternatively, enter on the command line

:n
or simply
n
where n is the number of the line.

Note:  The keyboard operations indicated above are effective only in certain editor profiles.

Related tasks
Using location marks
Finding and replacing text
Issuing editor commands

Related reference
locate command
Short editor commands