Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 05-23-2005, 05:24 AM   #1
Registered: Jul 2004
Location: The Netherlands
Distribution: Mandrake, Knoppix, Coyote Linux, RedHat
Posts: 354
Blog Entries: 3

Rep: Reputation: 31
Mandrake 10.x - Gvim 'split open' corrupts opened files and leaves ghost swapfiles

Good day.

I'm having a rather peculiar problem that started in Mandrake 10, and also seems to exist in Mandrake 10.1, both with Gvim.
What I use to recreate this problem:
1. a generic 32MB USB flash pen drive - write enabled
2. Gvim 6.3.20
3. a set of *.php files

How the problem occurs:
1. Insert pen, wait a second for mount, browse to folder with *.php files
2. Start Gvim, and make it open, say, index.php
3. Use Gvim's split-open function to load Template_Page.php in the same window

What happens:
Gvim will complain that '.Template_Page.php.swp' already exists, and that the swapfile is newer than the one it tried to create. Usual options to edit anyway/recover/delete/cancel appear in a separate window and as warning text inside the editor.
So far it seems that whatever option I choose, I can actually edit the file(s), but when I close them they will have disappeared from my flash drive, along with their usual <file>.php~ file that Gvim likes to create, and the swapfiles are also gone. Gvim also seems to create a swapfile under a different name, such as '.<filename>.php.swo'

Either way, I end up having to dig out the remains of my files with a Windows machine using Scandisk, and puzzling back together the pieces from the '' files with a plain text editor.

What is happening here and how do I stop it from happening? I have no such problems with the Windows version of Gvim, and I also have never encountered this before in Mandrake versions <9. is it Gvim itself, is it how the USB pen is accessed, file caching, ??


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
open SuSE 9.3 Logout from an opened file langbein SUSE / openSUSE 2 11-21-2005 03:19 PM
Vim leaves temp files everywhere dive Slackware 7 11-21-2005 12:22 PM
Guarddog leaves Cups port 631 open, how do I close it? tigerflag Linux - Security 4 08-29-2004 12:28 PM
Mandrake DiskDrake corrupts my partition table vincebs Mandriva 5 01-31-2004 10:41 AM
Ext2 filesystem corrupts Photoshop files drjeep Linux - General 3 11-08-2002 07:50 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:29 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration