Monday, July 28, 2014

netrw reopening existing file through explorer shows temp file

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?

Thanks

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