]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
vimrc: Don't store swap files in the same directory as the edited file.
authorSimon Ruderich <simon@ruderich.org>
Fri, 12 Mar 2010 03:05:10 +0000 (04:05 +0100)
committerSimon Ruderich <simon@ruderich.org>
Fri, 12 Mar 2010 03:05:10 +0000 (04:05 +0100)
vimrc

diff --git a/vimrc b/vimrc
index d8bd27c8471e480da246aa8d7693bb4089baedc5..a585717b03e14bae75e5fd247ad315770c781e9a 100644 (file)
--- 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