From: Simon Ruderich Date: Fri, 12 Mar 2010 03:05:10 +0000 (+0100) Subject: vimrc: Don't store swap files in the same directory as the edited file. X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=d37065a3aca383c1663ec416a25ea54ede925b1b;p=config%2Fdotfiles.git vimrc: Don't store swap files in the same directory as the edited file. --- diff --git a/vimrc b/vimrc index d8bd27c..a585717 100644 --- a/vimrc +++ b/vimrc @@ -23,6 +23,9 @@ set nocompatible set runtimepath-=~/.vim set runtimepath^=~/.vim,~/.vim/runtime +" Don't store swap files in the same directory as the edited file. +set directory-=. + " Disable modelines as they may cause security problems. Instead use " securemodelines (Vim script #1876). set nomodeline