summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCiaran McCreesh <ciaranm@gentoo.org>2004-06-14 16:59:57 +0000
committerCiaran McCreesh <ciaranm@gentoo.org>2004-06-14 16:59:57 +0000
commitad5e6e3fad6b07ee6b9e7684e2e601b8f48307f3 (patch)
tree9590b3479eb4dec1097542ba7a9b94dfdf61f380 /app-editors/vim-core/files
parentStable on x86 (Manifest recommit) (diff)
downloadgentoo-2-ad5e6e3fad6b07ee6b9e7684e2e601b8f48307f3.tar.gz
gentoo-2-ad5e6e3fad6b07ee6b9e7684e2e601b8f48307f3.tar.bz2
gentoo-2-ad5e6e3fad6b07ee6b9e7684e2e601b8f48307f3.zip
Add in crontab autocmd to fix backupcopy, see bug 53437 and :help crontab. No revbump as it's only a minor change.
Diffstat (limited to 'app-editors/vim-core/files')
-rw-r--r--app-editors/vim-core/files/vimrc5
1 files changed, 5 insertions, 0 deletions
diff --git a/app-editors/vim-core/files/vimrc b/app-editors/vim-core/files/vimrc
index 74447c839885..9fa7db0190e8 100644
--- a/app-editors/vim-core/files/vimrc
+++ b/app-editors/vim-core/files/vimrc
@@ -75,6 +75,11 @@ augroup gentoo
\ if line("'\"") > 0 && line ("'\"") <= line("$") |
\ exe "normal g'\"" |
\ endif
+
+ " When editing a crontab file, set backupcopy to yes rather than auto. See
+ " :help crontab and bug 53437.
+ autocmd FileType crontab set backupcopy=yes
+
augroup END
endif " has("autocmd")