]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
vimrc: never use /tmp for swap files
authorSimon Ruderich <simon@ruderich.org>
Sun, 16 Aug 2015 22:03:34 +0000 (00:03 +0200)
committerSimon Ruderich <simon@ruderich.org>
Sun, 16 Aug 2015 22:03:34 +0000 (00:03 +0200)
vimrc

diff --git a/vimrc b/vimrc
index 63741d7899f8f1fded8744a21c0d05125a29b570..49ccdfe41a784401b41b709f8a116455cecf710e 100644 (file)
--- a/vimrc
+++ b/vimrc
@@ -62,6 +62,8 @@ if filewritable('~/.tmp') == 2 || filewritable('~/tmp') == 2
 endif
 " But store them in ~/.tmp or ~/tmp (already set by default) if available.
 set directory^=~/.tmp
+" Never use /tmp which gets cleaned on reboot.
+set directory-=/tmp
 
 " Disable modelines as they may cause security problems. Instead use
 " securemodelines (Vim script #1876).