Thanks for the quick response. It is now switching to the existing file as expected.
One unexpected side effect is that after the switch the file is getting set as readonly. Also, the :E command (with or without a file open) when used with netrw is now displaying the output: "shell returned 1". I verified that with the old netrw the command doesn't display this output.
I tested this with MacVim and if you can't observe the behaviors above it may be due to MacVim. I will test this tomorrow with Windows and let you know.
Best,
Yavuz
On Wednesday, July 30, 2014 4:13:19 PM UTC-4, Charles Campbell wrote:
> Yavuz Yetim wrote:
>
> > I reproduced this in different ports of VIM and seems to be a netrw vimscript issue rather than an issue in a specific port. In case it's relevant, I'm using latest MacVim "VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Apr 21 2014 14:54:22)"
>
> >
>
> > To reproduce:
>
> > - Open a remote file (e.g., :e scp://remoteserver/.vimrc)
>
> > - Split the window
>
> > - Open the explorer (:E)
>
> > - Now find the same file (i.e., .vimrc) and press enter to open it
>
> >
>
> > Result: Now one window shows correct name and file (i.e., scp://remote/.vimrc) and the other one the temp file (i.e., /tmp/somelongrandomname)
>
> >
>
> > Expected: Both windows should show the same file.
>
> >
>
> > Note: This same issue happens as long as the existing file is loaded in some way. For example, when it's loaded with "set hidden" or in another tab.
>
> >
>
> > Is there a way to fix this?
>
> >
>
> Please try netrw v153p, which you may get from my website:
>
> http://www.drchip.org/astronaut/vim/index.html#NETRW
>
>
>
> Regards,
>
> Chip Campbell
--
--
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.
Wednesday, July 30, 2014
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment