On 16 October 2015, Tony Mechelynck <antoine.mechelynck@gmail.com> wrote:
> On Thu, Oct 15, 2015 at 10:45 AM, Simon Ruderich <simon@ruderich.org> wrote:
> > On Thu, Oct 15, 2015 at 01:38:21AM -0400, VML VWS wrote:
> >> Hi Tony,
> >>
> >> Reading :h <amatch>, I'm unable to tell whether <amatch> would be the
> >> basename or the full pathname of the matched file. Could you say?
> >
> > According to :h <amatch> it's <afile> in this case which is only
> > the file name.
> >
> > Regards
> > Simon
>
> According to the help, at the BufWritePost event <afile> and <amatch>
> are the same:
> <quote>
> <amatch> When executing autocommands, is replaced with the match for
> which this autocommand was executed. It differs from
> <afile> only when the file name isn't used to match with
> (for FileType, Syntax and SpellFileMissing events).
> </quote>
Sadly, that last part is not true. <amatch> is always a full path,
while <afile> is shortened. For more details:
http://vi.stackexchange.com/a/4526/2313
/lcd
--
--
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 because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment