Friday, January 15, 2016

Re: detach current tab into a separate window

On Fri, Jan 15, 2016 at 2:13 PM, Charles E Campbell
<drchip@campbellfamily.biz> wrote:
>>>
>> When I tried to detach fileB.txt from the gvim window started by
>> gvim -p fileA.txt fileB.txt
>>
>> there is a warning window saying
>> Swap file ".fileB.txt.swp" already exists!
>> the buttons below asks the user to choose one of "Open Read-Only",
>> "Edit anyway", "Recover", "Quit", "Abort"
>>
>> Can you fix this?
>>
> Just tried this:
>
> gvim -u NONE -N -p fileA.txt fileB.txt
> :so [path]/Detach.vim
> :Detach
>
> and it worked correctly without any messages. The message you got
> appears when you hold the file open in another instance of gvim and,
> really, you don't want not to have it. Its telling you that changes
> made to the file in one instance of gvim won't necessarily be reflected
> in the other instance. Remember, the :Detach command starts up a new
> instance of gvim; its not a separate thread sharing the same memory.
> Vim does not support that.
>

That is weird! It pops up the swap file exists error window even with
"gvim -u NONE -N -p fileA.txt fileB.txt". I am using vim 7.4.576 on
Debian Jessie.

raju

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment