From be514bc4c2d011f8e89136fa3ea5299338d1f4fc Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Sat, 21 May 2011 00:09:34 +0200 Subject: [PATCH] vimrc: Store swap files in ~/.tmp if available. --- vimrc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vimrc b/vimrc index 97d0c37..4c5f852 100644 --- a/vimrc +++ b/vimrc @@ -34,6 +34,8 @@ set runtimepath^=~/.vim,~/.vim/runtime " Don't store swap files in the same directory as the edited file. set directory-=. +" But store them in ~/.tmp if available. +set directory^=~/.tmp " Disable modelines as they may cause security problems. Instead use " securemodelines (Vim script #1876). -- 2.45.2