LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices



Reply
 
Search this Thread
Old 05-23-2005, 06:24 AM   #1
Xolo
Member
 
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 'found.xxx' 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, ??
 
  


Reply


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/Novell 2 11-21-2005 04:19 PM
Vim leaves temp files everywhere dive Slackware 7 11-21-2005 01:22 PM
Guarddog leaves Cups port 631 open, how do I close it? tigerflag Linux - Security 4 08-29-2004 01:28 PM
Mandrake DiskDrake corrupts my partition table vincebs Mandriva 5 01-31-2004 11:41 AM
Ext2 filesystem corrupts Photoshop files drjeep Linux - General 3 11-08-2002 08:50 PM


All times are GMT -5. The time now is 05:31 PM.

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