On Thu, Nov 09, 2023 at 09:53:27AM +1100, Brendan O'Dea wrote: > On Thu, 9 Nov 2023 at 02:52, Chris Green <[email protected]> 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
