On Fri, Jun 02, 2006 at 12:08:42PM +0530, Srinivas Rao. M 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 the 
> 
> I 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.
> 
> 
> Thanks,
> srini...

I posted a function to do this back in 2004.  It respects the 'path'
variable and overrides 'gf', '^Wf', '^W^F'.  Here's an archive link:

http://marc.theaimsgroup.com/?l=vim&m=108273507828349&w=2

-- 
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Gregory H. Margo
gmargo at yahoo/com, gmail/com, pacbell/net; greg at margofamily/org

Reply via email to