aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-07-18 10:32:03 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-07-18 10:32:03 +1200
commit12653d4a5cb6f6e80d8d3d35ab5427eb827635c0 (patch)
tree74728021c2db3873353d3e740786d3ea5c957961
parentMerge branch 'hotfix/v1.34.1' into develop (diff)
downloaddotfiles-12653d4a5cb6f6e80d8d3d35ab5427eb827635c0.tar.gz
dotfiles-12653d4a5cb6f6e80d8d3d35ab5427eb827635c0.zip
Make 'backupskip' with Unix paths depend on +unix
-rw-r--r--vim/vimrc4
1 files changed, 3 insertions, 1 deletions
diff --git a/vim/vimrc b/vim/vimrc
index 36090c8c..d823568c 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -61,7 +61,9 @@ elseif has('win32') || has('win64')
endif
" Don't back up stuff in /dev/shm or /var/tmp
-set backupskip+=/dev/shm,/var/tmp
+if has('unix')
+ set backupskip+=/dev/shm,/var/tmp
+endif
" Try to keep swapfiles in one system-appropriate dir
if has('unix')