On 2011-07-19, Jose Caballero wrote:
> Hi all,
> 
> I have been using so far with success this plugin [1], which
> allowed me to jump from logs files directly to the source code
> file and specific line where a given log message was generated.
> However, it worked because the source files where placed in the
> same directory where the log files were.
> That is not the case anymore.
> The source files I want to jump to are distributed between 3
> directories, none of them being the actual directory where the log
> file is -and therefore where I am invoking the plugin-.
> I need to modify the plugin in order to make it to search for
> file_name in any of those 3 directories.
> 
> Is there a way to achieve that?
> A link with info about that, or the right :help command, should be
> enough...

You could put those directories into the 'path' option, then use
:find instead of :edit.  Once those directories are in 'path',
though, you could use gF or ^WF to jump to the file name and line
number under the cursor.  With those commands, I don't think you'd
need your function at all.  See

    :help 'path'
    :help :find
    :help gF
    :help CTRL-W_F

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

Reply via email to