From: Simon Ruderich Date: Sun, 16 Aug 2015 22:03:34 +0000 (+0200) Subject: vimrc: never use /tmp for swap files X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=cb06ad5988e1b0d06f851e0de56507323c6f42fa;p=config%2Fdotfiles.git vimrc: never use /tmp for swap files --- diff --git a/vimrc b/vimrc index 63741d7..49ccdfe 100644 --- 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).