aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-08-16 12:49:43 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-08-16 12:49:43 +1200
commit14717e30050f06a58402d26f302c2b4d53a77ada (patch)
tree7732e9e3a6de58ac7fae29e623976ba90e7e332c
parent4e554edde379f111b7cca3e561e2748139af43e9 (diff)
downloaddotfiles-14717e30050f06a58402d26f302c2b4d53a77ada.tar.gz
Remove Unix 'backupskip' parts if not running Unix
-rw-r--r--vim/vimrc4
1 files changed, 4 insertions, 0 deletions
diff --git a/vim/vimrc b/vim/vimrc
index 68f18c8a..f4cb5171 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -55,6 +55,10 @@ endif
" Add some paths not to back up
set backupskip^=/dev/shm/* " Shared memory RAM disk
set backupskip^=/var/tmp/* " Debian's $TMPDIR for sudoedit(8)
+if !has('unix')
+ set backupskip-=/dev/shm/*
+ set backupskip-=/var/tmp/*
+endif
" Indent wrapped lines
silent! set breakindent