From cb06ad5988e1b0d06f851e0de56507323c6f42fa Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Mon, 17 Aug 2015 00:03:34 +0200 Subject: [PATCH] vimrc: never use /tmp for swap files --- vimrc | 2 ++ 1 file changed, 2 insertions(+) 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). -- 2.45.2