Re: vi question

2003-09-18 Thread Diego Iastrubni
ביום חמישי, 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

Re: vi question

2003-09-18 Thread Herouth Maoz
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

Re: vi question

2003-09-18 Thread Erez Doron
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

RE: vi question

2003-09-18 Thread Tzahi Fadida
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

Re: vi question

2003-09-18 Thread Erez Doron
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

Re: vi question

2003-09-18 Thread Erez Doron
* - * - * - * - * - * - * WARNING TO SPAMMERS: see at http://members.lycos.co.uk/my2nis/spamwarning.html -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Erez Doron Sent: Thursday, September 18, 2003 1:15 PM To: Ilug Subject: vi question hi i am using a

Re: vi question

2003-09-18 Thread 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 a lot of times, you open a file with vi ust to view it

Re: vi question

2003-09-18 Thread guy keren
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

RE: vi question

2003-09-18 Thread Herouth Maoz
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

RE: vi question

2003-09-18 Thread Tzahi Fadida
ber 18, 2003 1:15 PM > To: Ilug > Subject: vi question > > > hi > > 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 includes running a command line, then reloading the file (beca

vi question

2003-09-18 Thread Erez Doron
hi 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 includes running a command line, then reloading the file (because the date changes when i checkout the file), then let me edit it. i want all to be automatica