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

SV: CTRL-W f versus gf

Expand Messages
  • Stefan Karlsson
    ... No ... Yes ... No, only gf works. Strange, it seams that my path settings doesn t have any effect :-) Do you know if there *should* be any difference in
    Message 1 of 5 , May 27, 2005
      > * does test.h exist in the current directory?
      No

      > * does test.h only exist in ../../Test/test.h?
      Yes

      > * do both methods work after :set path= ?
      No, only gf works. Strange, it seams that my 'path' settings doesn't have
      any effect :-)

      Do you know if there *should* be any difference in search behavior between
      gf and ^Wf?

      Regards,

      Stefan Karlsson

      > -----Ursprungligt meddelande-----
      > Från: drchip@... [mailto:drchip@...]
      > Skickat: 26 maj 2005 18:54
      > Till: Stefan Karlsson
      > Kopia: vim@...
      > Ämne: Re: CTRL-W f versus gf
      >
      > Quoting Stefan Karlsson <stefan.karlsson@...>:
      > > Suppose i have the following line in a C document:
      > >
      > > #include "..\..\Test\test.h"
      > >
      > > When I use gf the included file is found, but when I use
      > CTRL-W f it is not.
      > > However, if I write
      > >
      > > #include "test.h"
      > >
      > > Both methods finds the file. Is there any setting I can use
      > to fix this?
      >
      > Just checking your setup...
      >
      > * does test.h exist in the current directory?
      > * does test.h only exist in ../../Test/test.h?
      > * do both methods work after :set path= ?
      >
      > When I tried this under RH8 Linux, admittedly using a
      > different path (in my case, #include ".HDR/xtdio.h"), when
      > the path setting included /home/cec/.HDR, both methods found
      > the header file, and when the path setting was "", neither
      > method found the file.
      >
      > Regards,
      > Chip Campbell
      >
    Your message has been successfully submitted and would be delivered to recipients shortly.