ביום חמישי, 18 בספטמבר 2003, 16:36, נכתב על ידי Lior Kesos:
> guy keren wrote:
> >On Thu, 18 Sep 2003, Erez Doron wrote:
> >>i am using a version control software
> >>i want vi to automatically checkout a file whenver i try to edit it
> >>while it is read-only.
> >
> >this is not a good idea, since
On Thursday, Sep 18, 2003, at 18:52 Asia/Jerusalem, Erez Doron wrote:
what i still need is that if the file is read-only, whenver i press
'i' for insert or 'o' or I or a or A etc ... that it will do what f9
does,
( and also get rid of the 'y' i have to answer)
OK, what you need is (a) to define
ge-
From: Erez Doron [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 18, 2003 5:13 PM
To: [EMAIL PROTECTED]
Cc: Ilug
Subject: Re: vi question
i have a script that does checkout, but i have to do:
1. write the file -> i get a warning it is r/o
2. force write ( :w! ) -> still can't wr
ptember 18, 2003 5:13 PM
> To: [EMAIL PROTECTED]
> Cc: Ilug
> Subject: Re: vi question
>
>
> i have a script that does checkout, but i have to do:
> 1. write the file -> i get a warning it is r/o
> 2. force write ( :w! ) -> still can't write
> 3. run checkout s
guy keren wrote:
On Thu, 18 Sep 2003, Erez Doron wrote:
i am using a version control software
i want vi to automatically checkout a file whenver i try to edit it
while it is read-only.
this is not a good idea, since a lot of times, you open a file with vi ust
to view it.
this includes
i have a script that does checkout, but i have to do:
1. write the file -> i get a warning it is r/o
2. force write ( :w! ) -> still can't write
3. run checkout script
4. vi now tells me that the file i'm editing is older than the file on
disk. i press 'o' for o.k.
5. i write again (:w) -> still r
guy keren wrote:
On Thu, 18 Sep 2003, Erez Doron wrote:
i am using a version control software
i want vi to automatically checkout a file whenver i try to edit it
while it is read-only.
this is not a good idea, since a lot of times, you open a file with vi ust
to view it
On Thu, 18 Sep 2003, Erez Doron wrote:
> i am using a version control software
> i want vi to automatically checkout a file whenver i try to edit it
> while it is read-only.
this is not a good idea, since a lot of times, you open a file with vi ust
to view it.
> this includes running a command
Quoting Tzahi Fadida <[EMAIL PROTECTED]>:
> what about a script?
> here is a script i wrote in 5 min. you are missing the "if" to check if the
> file
> is read only, i don't know what program can test that, but i am sure others
> know(p.s i used bash):
bash itself can test that:
if [ ! -w filena
what about a script?
here is a script i wrote in 5 min. you are missing the "if" to check if the file
is read only, i don't know what program can test that, but i am sure others
know(p.s i used bash):
#!/bin/sh
PATH=/usr/ucb:/bin:/usr/bin:/usr/sbin
MAILTO=root
MAIL=/bin/mail
CVSROOT=:pserver:[EMAIL
10 matches
Mail list logo