Tony Mechelynck wrote:
> On 29/12/08 16:56, Charles Campbell wrote:
>   
>> Markus Heidelberg wrote:
>>     
>>> Charles Campbell, 29.12.2008:
>>>
>>>       
>>>> Tom Link wrote:
>>>>
>>>>         
>>>>>> When I try to rename a file 1.PDF to 1.pdf, then I find the file got 
>>>>>> lost! I
>>>>>> can't find it any other where. But I have backup them up with lucky.
>>>>>>
>>>>>>
>>>>>>             
>>>>> [..]
>>>>>
>>>>> You might have more luck by using some command line tool for this, I
>>>>> presume.
>>>>>
>>>>> [..]
>>>>>
>>>>>
>>>>>           
>>>> I'll have to try this out -- I don't have a linux box with a fat32
>>>> mounted drive immediately available
>>>>
>>>>         
>>> dd if=/dev/zero of=fat32.img bs=4k count=10k
>>> mkfs.vfat -F 32 fat32.img
>>> mkdir mount
>>> mount -o loop,umask=000 fat32.img mount/   # as root
>>> cd mount
>>> touch file1.PDF
>>> vim .
>>>
>>> Then renaming with 'R' to file1.pdf or similar deletes the file.
>>>
>>>       
>> Thanks -- although I already knew how to make a fat32 partition -- there
>> are reasons why I don't want to make a fat32 partition on the machine
>> I'm currently working with.
>>
>> Regards,
>> Chip Campbell
>>     
>
> That's your choice of course, but as shown (a FAT32 image as a file on a 
> Linux partition) it would still not be visible to a Windows kernel. Of 
> course you might prefer to do it at home rather than on the job.
>   
Well, its lunchtime -- and I've done it -- and it appears to be a vim 
problem.  Netrw is in fact calling vim's rename() function; but with 
full paths.

:call rename("..fullpath../1.pdf","..fullpath../1.PDF")

causes the 1.pdf file to be removed.

Regards,
Chip Campbell


--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to