Re: vi dup




----- Original Message -----
From: "ThreeStar" <sco@xxxxxxxxxxxxxxxxx>
Newsgroups: comp.unix.sco.misc
To: <distro@xxxxxxx>
Sent: Wednesday, May 21, 2008 12:18 PM
Subject: Re: vi dup


On May 20, 1:26 am, Nico Kadel-Garcia <nka...@xxxxxxxxx> wrote:
On 20 May, 01:08, Bill Campbell <b...@xxxxxxxxxxxxx> wrote:



On Mon, May 19, 2008, Jeff Hyman wrote:
Hello everyone out there,

Is there a way within 'vi', that can prevent the same user from
'vi'ing the same file in another session?

As I get distracted with calls, etc, I may end up editing the same
file, and inadvertently (and lastly) exiting the one without the mods.
What a GREAT way to waste valuable time.

Use vim instead of vi. Vim creates a .filename.swp file in the
same directory as the file being edited, and a second attempt to
edit the file results in a warning message. Vim uses that file
for recovery with ``vim -r filename'' instead of burying some
file under /var/tmp/somethingorother.


There are usable version of vim at Skunkware. I do't recommend
installing it from scratch, getting the terminal behavior i a bit
tricky.

FWIW vim is included in OpenServer 6.

--RLR

There is also a very current version in osr507mp5, and like several other
things from osr507mp5, it can be installed on at least osr506 as long as
it's got oss646c. Probably 505 and 504 too though I haven't tried more than
506 myself yet.

I have a stand-alone vim 6.something on my site but the osr507mp5 one is
newer and more complete.

Brian K. White brian@xxxxxxxxx http://www.myspace.com/KEYofR
+++++[>+++[>+++++>+++++++<<-]<-]>>+.>.+++++.+++++++.-.[>+<---]>++.
filePro BBx Linux SCO FreeBSD #callahans Satriani Filk!

.



Relevant Pages

  • Re: vi dup
    ... |>>'vi'ing the same file in another session? ... | There are usable version of vim at Skunkware. ... | installing it from scratch, getting the terminal behavior i a bit ... but what other way then installing from ...
    (comp.unix.sco.misc)
  • Re: vi dup
    ... |>>'vi'ing the same file in another session? ... | There are usable version of vim at Skunkware. ... | installing it from scratch, getting the terminal behavior i a bit ... but what other way then installing from ...
    (comp.unix.sco.misc)
  • Re: vi dup
    ... and inadvertently exiting the one without the mods. ... installing it from scratch, getting the terminal behavior i a bit ... I have a stand-alone vim 6.something on my site but the osr507mp5 one is ... that's the fifth cd with the OSR 5.0.7 currentn distribution? ...
    (comp.unix.sco.misc)
  • Re: VI vs VIM and why wont it update...
    ... > adjust what needed to be adjusted for it to work as expected. ... I would guess that you didn't logout after installing vim-enhanced. ... They add an alias into the shell so that typing ... "vi" actually runs vim. ...
    (Fedora)
  • Re: vi dup
    ... and inadvertently exiting the one without the mods. ... What a GREAT way to waste valuable time. ... Use vim instead of vi.  Vim creates a .filename.swp file in the ... show enough free enterprise to pile up a little of that profit, ...
    (comp.unix.sco.misc)