" Don't store swap files in the same directory as the edited file.
set directory-=.
-" But store them in ~/.tmp if available.
+" But store them in ~/.tmp if available or ~/tmp (used by default).
set directory^=~/.tmp
" Disable modelines as they may cause security problems. Instead use