aboutsummaryrefslogtreecommitdiffstats
path: root/vimrc
diff options
context:
space:
mode:
authorTeddy Wing2015-01-06 16:38:07 -0500
committerTeddy Wing2015-01-06 16:44:12 -0500
commit7aa28e29a72710c06c5cdf83343b4967e3c7132c (patch)
tree8e991ac86d19fde79d898a1e4c6fbf380f34cdaa /vimrc
parentd3ff8ada5f73cb7f59cdf0e0c8c0cd589c3306de (diff)
downloaddotvim-7aa28e29a72710c06c5cdf83343b4967e3c7132c.tar.bz2
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.
Diffstat (limited to 'vimrc')
-rw-r--r--vimrc6
1 files changed, 6 insertions, 0 deletions
diff --git a/vimrc b/vimrc
index 4d32cd7..e3e94bb 100644
--- a/vimrc
+++ b/vimrc
@@ -266,6 +266,9 @@
" * Add <leader>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