edenzik / macvim

Automatically exported from code.google.com/p/macvim
0 stars 0 forks source link

macvim doesn't respect the file Labels that one may set in Mac OS X Finder #267

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1 Select a text file in Finder (e.g. 'index.html')
2 Control-Click on this file
3 Select the one of the color labels in the bottom of the Control-Click menu
4 Open the file in MacVim
5. Press the Save command. 
6. Now, go back to Finder and check that the color label remains
ERROR: the color label is gone.

What is the expected output? What do you see instead?
- It is expected that the color label was not affected (changed or removed) by 
the Save/Write 
command

What version of MacVim and OS X are you using (see "MacVim->About MacVim"
and  "Apple Menu->About This Mac" menu items, e.g. "Snapshot 40, 10.5.6
Intel")?
- PPC, Custom Version 7.2.376 (52) 
    [I built it myself using MacPorts (http://www.macports.org/]

Please provide any additional information below.
- I also tested in VIM.app version 7.2.402 (which I think stems from  
http://macvim.org and 
which also was installed via MacPorts) and it had the same problem.
- Testing in TextWrangler, there were no such problem.

Original issue reported on code.google.com by Ep...@lhs.priv.no on 25 Apr 2010 at 5:51

GoogleCodeExporter commented 9 years ago
This is due to the way Vim saves files (it saves it to a different name, then 
deletes the old file, and renames the 
saved file to the name of the original file, which causes meta data to be 
lost).  You can work around this issue by 
setting 'backupcopy' to 'yes':

:set backupcopy=yes

See, ":h 'bkc" for more information (also take a look at ":h backup-table", ":h 
'backup" and ":h 'writebackup").

Original comment by bjorn.winckler@gmail.com on 25 Apr 2010 at 6:08