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

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

Expand Messages
  • Ben Fritz
    Nov 1 8:24 AM
      On Nov 1, 8:32 am, Dotan Cohen <dotanco...@...> wrote:
      > On Tue, Nov 1, 2011 at 01:06, Gary Johnson <garyj...@...> wrote:
      > > 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'
      > i see, Gary, that makes sense. Is there any workaround? This is a huge
      > (>80000 files) application, full of include()s and require()s.
      > Thanks.

      gf works also on a visual selection. Select just what you want to
      find, relative to one of the directories in your path, in visual mode.
      THEN press gf.

      This is also the best way to use gf on filenames with spaces or other
      special characters (not in 'isfname'), incidentally.

      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