Move swap files outside the working directory, mostly because of Dropbox
--HG-- extra : rebase_source : 704f54c898fa3c8c88c748d902b433c3f7e0d5c2
This commit is contained in:
@@ -54,10 +54,11 @@ if has('win32')
|
|||||||
" Windows has a different font naming pattern
|
" Windows has a different font naming pattern
|
||||||
" Also, Consolas is more widely available than Luxi
|
" Also, Consolas is more widely available than Luxi
|
||||||
set guifont=Consolas:h9:cANSI
|
set guifont=Consolas:h9:cANSI
|
||||||
" The default directory setting uses C:\tmp and C:\temp, neither of which
|
" Store swap files together in the user's temp directory
|
||||||
" are valid on Windows 6.0 and later
|
set directory=$TEMP\\\
|
||||||
set directory=.,$TEMP,
|
|
||||||
elseif has('unix')
|
elseif has('unix')
|
||||||
" Nice font and size (escape spaces) (GUI only)
|
" Nice font and size (escape spaces) (GUI only)
|
||||||
set guifont=Luxi\ Mono\ 9
|
set guifont=Luxi\ Mono\ 9
|
||||||
|
" Store swap files together in the user's cache directory
|
||||||
|
set directory=~/.cache/vim//
|
||||||
endif
|
endif
|
||||||
|
|||||||
Reference in New Issue
Block a user