Tuesday, November 1, 2011

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

On Nov 1, 8:32 am, Dotan Cohen <dotanco...@gmail.com> wrote:
> On Tue, Nov 1, 2011 at 01:06, Gary Johnson <garyj...@spocom.com> 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

No comments: