diff options
author | Renken <renken@shione.net> | 2022-09-07 17:37:17 +0200 |
---|---|---|
committer | Renken <renken@shione.net> | 2022-09-07 17:37:17 +0200 |
commit | 8142bd412bdf77e8f58a70dc0f6688bb6f890310 (patch) | |
tree | fb55aa500f824484520a8815cb23097c8d8c9d8b /nichijou/home/config/nvim | |
parent | df2c7e71ffc3c3b57845f5306b4aebbd96f09b01 (diff) | |
download | shione-8142bd412bdf77e8f58a70dc0f6688bb6f890310.tar.gz shione-8142bd412bdf77e8f58a70dc0f6688bb6f890310.zip |
home: nvim: avoid polluting home directory
Diffstat (limited to 'nichijou/home/config/nvim')
-rw-r--r-- | nichijou/home/config/nvim/init.vim | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nichijou/home/config/nvim/init.vim b/nichijou/home/config/nvim/init.vim index f4f684b..bd87514 100644 --- a/nichijou/home/config/nvim/init.vim +++ b/nichijou/home/config/nvim/init.vim @@ -41,8 +41,8 @@ autocmd BufReadPost * " Set the swap directory. The extra '/' suffix is required to make vim create " unique filenames. -call mkdir(expand("~/.vim/swap"), "p", 0700) -set dir=~/.vim/swap// +call mkdir(expand("~/.cache/nvim/swap"), "p", 0700) +set dir=~/.cache/nvim/swap// " Use system clipboard by default set clipboard +=unnamedplus @@ -198,7 +198,7 @@ set nowrap " Enable persistent undo if it is supported if has('persistent_undo') - let vundodir = expand('~/.vim/undo') + let vundodir = expand('~/.cache/nvim/undo') if !isdirectory(vundodir) call mkdir(vundodir) endif |