Nikola Knežević wrote:
> On 13 Sep 2007, at 03:59 , Jjgod Jiang wrote:
>> You mean vim-cocoa-r95.patch?
>>
> Yes.
> 
>>> :e file-opened-in-another-session
>>> vim just crashes. Terminal version survives somehow.
>> I can not reproduce it here, what do you mean by
>> "file-opened-in-another-session"?
>>
> Apparently, it happens with plain vim (taken from svn). file-opened- 
> in-another-session is a file which I have open in another Vim[*]  
> window (application). Application just crashes.
> 
> [*] this Vim is the official release, from macvim.org

Trying to modify a single file in two different instances of Vim at the same 
time is always a bad idea. Normally you ought to get a message in the second 
instance (see ":help ATTENTION").

- Does it work if you open the file read-only at least one of both times? For 
instance,

        view foobar.txt

in the shell, or

        :view foobar.txt
or
        :sview foobar.txt

in Vim?

- When not readonly either time (your original case), are you sure that the 
first Vim creates its swap file someplace where the second Vim can find it?

- Does the crash happen if the file is not being edited in another Vim but if 
you create a dummy, zero-length "swapfile" next to it? For instance,

(Windows)
        copy NUL foobar.txt.swp
        vim foobar.txt
or (Unix)
        cp -v /dev/null .foobar.txt.swp
        vim foobar.txt
assuming, in both cases, that the file is in the current directory (and, on 
Windows, on the current disk)

Note: I _think_ those are the correct swapfile names, but I'm not on a 
multiboot system anymore. Check it first with

        vim foobar.txt
followed by
        :swapfile



Of course, in the above, replace everywhere "foobar.txt" by the name of your 
"file opened in another session".

If you mean that you are trying to edit the same file in different versions of 
Vim, but not at the same time, please say so, because then I have 
misunderstood you.



Best regards,
Tony.
-- 
    A village.  Sound of chanting of Latin canon, punctuated by short, sharp
    cracks.  It comes nearer.  We see it is a line of MONKS ala SEVENTH SEAL
    flagellation scene, chanting and banging themselves on the foreheads with
    wooden boards.
                  "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Raspunde prin e-mail lui