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