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

126760Re: Cannot use gf to go to file, path seems set

Expand Messages
  • Gary Johnson
    Oct 31, 2011
    • 0 Attachment
      On 2011-11-01, Dotan Cohen wrote:
      > I have this line in some PHP code:
      > require_once(DIR . '/includes/functions_misc.php');
      >
      > DIR is actually /var/www/html/forum/
      > I have set my path to be the include-all monster:
      > :set path=.,/var/www/html,/var/www/html/forum,/var/www/html/forum/includes
      >
      > However, gf insists that it cannot find the file. I did try each value
      > of the path my itself, still no good. What might I be doing wrong? VIM
      > 7.x, CentOS 5.x.

      The problem is that that last segment of the path name,
      /includes/functions_misc.php, begins with a "/" which Vim
      understands to mean the beginning of an absolute path. See

      :help 'path'

      Regards,
      Gary

      --
      You received this message from the "vim_use" maillist.
      Do not top-post! Type your reply below the text you are replying to.
      For more information, visit http://www.vim.org/maillist.php
    • Show all 10 messages in this topic