From 7aa28e29a72710c06c5cdf83343b4967e3c7132c Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Tue, 6 Jan 2015 16:38:07 -0500 Subject: virmc: Set backupcopy=yes Add setting to preserve file attributes, such as creation date. I went to check the creation date of a file I know was created at least a year ago, but its creation date was today and the same as its modified date. I had recently edited the file in Vim, and that ended up being the problem. This setting ensures that files are reused so their attributes are preserved. What an unfortunate loss of history since last April. --- vimrc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'vimrc') diff --git a/vimrc b/vimrc index 4d32cd7..e3e94bb 100644 --- a/vimrc +++ b/vimrc @@ -266,6 +266,9 @@ " * Add p mapping to read from the OS X pasteboard. Much faster " than pasting directly if you're dealing with a lot of text. " +" 2015.01.06: +" * Set backupcopy=yes to preserve creation dates of files. +" " Pathogen @@ -322,6 +325,9 @@ set backupdir=~/.vim/backup/backup// set directory=~/.vim/backup/swap// set undodir=~/.vim/backup/undo// +" Preserve file attributes, like creation date +set backupcopy=yes + " Disable all default ftplugins " http://vim.wikia.com/wiki/File_type_plugins#Disabling_default_ftplugins " http://stackoverflow.com/questions/11337129/setting-buffer-specific-variables-in-vim#comment14956146_11351393 -- cgit v1.2.3