Buffer content is lost when opening file over network that doesn't exsist

Bug #253576 reported by Martynas Budriūnas
Affects Status Importance Assigned to Milestone
vim (Ubuntu)

Bug Description

Binary package hint: vim

I'm using VIM 7.1.138 (netrw v109) on Ubuntu 8.04.
The fastest way to see this bug happening seems to be this:
1) Start vim, type :e ftp://<email address hidden>//path/to/existing/file
2) Enter the password - file content appears in the buffer.
3) Type :w
4) Type :sp ftp://<email address hidden>//path/to/NOT/existing/file

What happens after this is:
1) 2 new buffers are opened: the first one says '/path/to/NOT/existing/file: No such file or directory', and the second is the buffer for that file. You can edit that buffer and save it, so a new file is created on the server.
2) The old buffer which had the contents of ftp://<email address hidden>//path/to/existing/file is empty.

I expect that the second consequence above is a bug. If I was in a middle of editing in one buffer and opened another which would create a new file, all my work on the first one is lost - it's impossible to undo any changes, it says 'Already at oldest change', and the old buffer is cleared and not saved on the server.

Tags: hardy
description: updated
Revision history for this message
Paul White (paulw2u) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. We are sorry that we do not always have the capacity to review all reported bugs in a timely manner.

Ubuntu 8.04 (hardy) reached end-of-life on May 12, 2011.

I'm setting the status of this bug to 'Incomplete' as it's not seen any activity for some time. If this is still an issue while using a currently maintained release of Ubuntu then please let us know which one(s) otherwise this bug report can be left to expire in approximately 60 days time.

tags: added: hardy
Changed in vim (Ubuntu):
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for vim (Ubuntu) because there has been no activity for 60 days.]

Changed in vim (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.