From: Simon Ruderich Date: Fri, 20 May 2011 22:09:34 +0000 (+0200) Subject: vimrc: Store swap files in ~/.tmp if available. X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=be514bc4c2d011f8e89136fa3ea5299338d1f4fc;p=config%2Fdotfiles.git vimrc: Store swap files in ~/.tmp if available. --- 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).