/ktb
-----Original Message-----
From: Martin Lundberg <[email protected]>
Sender: [email protected]
Date: Fri, 15 Apr 2011 11:57:56
To: <[email protected]>
Reply-To: [email protected]
Cc: <[email protected]>
Subject: Re: File path completion relative to current file directory
On Friday, April 15, 2011 5:52:40 PM UTC+2, ZyX wrote:
>
> I guess he wanted insert mode completion as it makes more sense (for
> example,
> for «#include "..."» preprocesser statement). In this case he has to write
> custom vim function to do completion (:h complete()).
>
Yes I meant insert mode completion. I do a lot of PHP at work and if my cwd
is /my/project and I'm editing the file /my/project/subfolder/file.php and I
write require_once('../other.php') the file completion thinks that I'm going
into the /my folder looking for the file /my/other.php when I'm really
defining a requirement for /my/project/other.php.
I will take a look at :h complete() but I don't think I'll be able to put
something together myself yet, unfortunately.
--
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
--
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