From 62e11faaa5de9027d8734ef5ab2fc47c30eaa277 Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Mon, 17 Dec 2012 17:23:36 -0600 Subject: [PATCH] Move swap files outside the working directory, mostly because of Dropbox --HG-- extra : rebase_source : 704f54c898fa3c8c88c748d902b433c3f7e0d5c2 --- plugin/00-dustin.vim | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/plugin/00-dustin.vim b/plugin/00-dustin.vim index fc70d26..73410ef 100644 --- a/plugin/00-dustin.vim +++ b/plugin/00-dustin.vim @@ -54,10 +54,11 @@ if has('win32') " Windows has a different font naming pattern " Also, Consolas is more widely available than Luxi set guifont=Consolas:h9:cANSI - " The default directory setting uses C:\tmp and C:\temp, neither of which - " are valid on Windows 6.0 and later - set directory=.,$TEMP, + " Store swap files together in the user's temp directory + set directory=$TEMP\\\ elseif has('unix') " Nice font and size (escape spaces) (GUI only) set guifont=Luxi\ Mono\ 9 + " Store swap files together in the user's cache directory + set directory=~/.cache/vim// endif