Loading ...
Sorry, an error occurred while loading the content.

Vim7: Jumping to a particular line in the filename under cursor

Expand Messages
  • Yegappan Lakshmanan
    Hi all, Check out the gF command in Vim7. This normal-mode command jumps to the filename under cursor and if a line number follows the file name, positions the
    Message 1 of 1 , May 3, 2006
    • 0 Attachment
      Hi all,

      Check out the gF command in Vim7. This normal-mode command
      jumps to the filename under cursor and if a line number follows the
      file name, positions the cursor on that line.

      For example, consider the following lines:

      /path/to/file:10
      /path/to/file @ 20
      /path/to/file (30)
      /path/to/file 40

      If you use the gF command, when the cursor is on a character in one
      of the above file names, then the /path/to/file will be edited and the
      cursor will be positioned at the line number following the file name.

      You can also use the CTRL-W_F command to edit the file in a new
      window and jump to the line number following the file name.
      Similarly, the CTRL-W_gF command to open the file in a new tab.

      - Yegappan
    Your message has been successfully submitted and would be delivered to recipients shortly.