Hello, On 6/1/06, Srinivas Rao. M <[EMAIL PROTECTED]> wrote:
Hello vimmers, I want to know if there is a way i can use 'gf' command to goto the file under the cursor, which is having theI have a string under my cursor as : somefile.c:1022 Where the field after ':' is the line number. Can i use the 'gf' command to goto that line number of that file. Assume that somefile.c's folder is added to "path" variable.
In Vim7, you can use the gF command to edit the file name under the cursor and if a number follows the file name, jump to that line number in the file. You can use <CTRL-W>F to open the file in a new window and jump to the line and <CTRL-W>gF to open the file in a new tab and jump to the line. - Yegappan
