[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Why doesn't this do what I expect?
From: |
Gary Jennejohn |
Subject: |
Re: Why doesn't this do what I expect? |
Date: |
Thu, 10 Nov 2022 20:58:14 +0100 |
On Thu, 10 Nov 2022 17:55:49 +0000
Chris Green <cl@isbd.net> wrote:
> I have a file, called .editfile which contains just a filename, e.g.:-
>
> chris$ cat .editfile
> /srv/wiki/data/pages/telecoms/umidigi.txtchris$
> chris$
>
> When I open the file with vile or xvile I see (as expected) the
> filename and I can enter ^X-e to edit the file.
>
> However if I try the following:-
>
> chris$ vile -ce .editfile
>
> I don't get to edit the file whose name is in .editfile, I get
> .editfile in one window and the following in the other window
> (named [Binding List] :-
>
> [Reading /home/chris/.vilerc]
> [Read 66 lines from "../.vilerc"]
> [Reading /usr/share/vile/filters.rc]
> [Reading /usr/share/vile/modes.rc]
> [Reading /usr/share/vile/digraphs.rc]
> [Reading /home/chris/wiki/.editfile]
> [Read 1 line from "./.editfile"]
>
>
> Is there any way I can get this to work as I want? I just want to
> open the file whose name is in .editfile.
>
> I've tried the alternatives of 'edit-file', 'E', 'e' and 'find-file'
> but they all act the same.
>
Sending to the list since I'm now suscribed using my new email account.
This works for me:
vile `cat ^Xe .zot` where .zot contains .bashrc and vile opens .bashrc.
^X = ctrl-V+ctrl-X
--
Gary Jennejohn
Re: Why doesn't this do what I expect?, Gary Jennejohn, 2022/11/11