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

RE: vi question

2003-09-18 Thread Tzahi Fadida
: 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 (because the date changes when i checkout the file), then let me edit it. i want all

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 filename ]

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 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

Re: vi question

2003-09-18 Thread Erez Doron
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 version control software i want vi to automatically checkout

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 Tzahi Fadida
] * - * - * - * - * - * - * - * - * - * 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

Re: vi question

2003-09-18 Thread Erez Doron
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 script 4. vi now tells me that the file i'm editing is older than the file on disk. i press 'o

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 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 a lot of times, you open a file with vi