mirror of
https://github.com/prurigro/darkcloud-nvimconfig.git
synced 2024-12-23 08:20:23 -05:00
Use ~/.vim/swap to store swap files rather than the current directory
This commit is contained in:
parent
65a0cbda1c
commit
5c51921aef
1 changed files with 4 additions and 0 deletions
|
@ -85,6 +85,10 @@
|
|||
set timeout timeoutlen=500 "how long before timing out for mappings
|
||||
set ttimeout ttimeoutlen=100 "how long before timing out for terminal key codes
|
||||
|
||||
"create ~/.vim/swap if necessary, then use as default swap file location
|
||||
if !isdirectory($HOME.'/.vim/swap')|call mkdir($HOME.'/.vim/swap','p')|endif
|
||||
set directory=$HOME/.vim/swap,.,/var/tmp,/tmp
|
||||
|
||||
"FUNCTIONS: {{{
|
||||
if has('autocmd')
|
||||
"enable the auto-creation of missing folders in a save path
|
||||
|
|
Loading…
Reference in a new issue