vile
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to access vile variables in : command?


From: Chris Green
Subject: Re: How to access vile variables in : command?
Date: Thu, 9 Nov 2023 08:51:43 +0000

On Thu, Nov 09, 2023 at 09:53:27AM +1100, Brendan O'Dea wrote:
> On Thu, 9 Nov 2023 at 02:52, Chris Green <cl@isbd.net> wrote:
> >
> > I'm sure this should be obvious but at the moment it's not obvious to
> > me! :-)
> >
> > I want to do something like the following:-
> >
> >     map #9 :e `pdf $cfilname`^M
> >
> > However the above doesn't work, $cfilname is null in the above
> > context. How can I get the current file's name in this sort of place?
> >
> Not sure about variables in general, but you should be able to use %
> for the current filename here (and # for the alternate filename).
> 
Of course, lateral thinking required, works a treat, thank you!

-- 
Chris Green



reply via email to

[Prev in Thread] Current Thread [Next in Thread]