aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2020-05-05 17:45:43 +1200
committerTom Ryder <tom@sanctum.geek.nz>2020-05-05 17:45:43 +1200
commit5d6f18d9baf4f5a0743ce4c63bb7fb6e5e2d5096 (patch)
tree7aeea363b8557e40acf61ccfba62575a95c9329a
parentAdd /usr/tmp to the list of undoskip paths (diff)
downloaddotfiles-5d6f18d9baf4f5a0743ce4c63bb7fb6e5e2d5096.tar.gz
dotfiles-5d6f18d9baf4f5a0743ce4c63bb7fb6e5e2d5096.zip
Add /tmp to 'backupskip'
-rw-r--r--vim/vimrc9
1 files changed, 5 insertions, 4 deletions
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