From 5d6f18d9baf4f5a0743ce4c63bb7fb6e5e2d5096 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Tue, 5 May 2020 17:45:43 +1200 Subject: Add /tmp to 'backupskip' --- vim/vimrc | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'vim/vimrc') diff --git a/vim/vimrc b/vim/vimrc index d60d66fd..db44ace2 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -2,7 +2,7 @@ " Tom Ryder (tejr)’s Literate Vimrc " ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ " -" Last updated: Mon, 04 May 2020 00:51:58 UTC +" Last updated: Tue, 05 May 2020 05:45:30 UTC " " │ And I was lifted up in heart, and thought " │ Of all my late-shown prowess in the lists, @@ -226,8 +226,9 @@ endif " creation of such undesired backup files. " " * /dev/shm: RAM disk, default path for password-store’s temporary files -" * /usr/tmp: Hard-coded path for sudoedit(8) [1/2] -" * /var/tmp: Hard-coded path for sudoedit(8) [2/2] +" * /tmp: Temporary files +" * /usr/tmp: Temporary files, hard-coded path for sudoedit(8) [1/2] +" * /var/tmp: Temporary files, hard-coded path for sudoedit(8) [2/2] " " Prior to v8.1.1519, Vim didn’t check patterns added to 'backupskip' for " uniqueness, so adding the same path repeatedly resulted in duplicate strings @@ -243,7 +244,7 @@ if has#('unix') if !has#('patch-8.1.1519') set backupskip& endif - set backupskip^=/dev/shm/*,/usr/tmp/*,/var/tmp/* + set backupskip^=/dev/shm/*,/tmp/*,/usr/tmp/*,/var/tmp/* endif " Keep swap files for file buffers in a dedicated directory, rather than the -- cgit v1.2.3