Thursday, October 15, 2015

Re: Excluding autocommands for files matching an exclusion pattern

On Thursday, October 15, 2015 at 3:45:24 AM UTC-5, Simon Ruderich 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.
>

But you can always use expand with file name modifiers like expand("<amatch>:p") to get whatever form you need.

--
--
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