home: nvim: avoid polluting home directory
This commit is contained in:
parent
df2c7e71ff
commit
8142bd412b
1 changed files with 3 additions and 3 deletions
|
@ -41,8 +41,8 @@ autocmd BufReadPost *
|
||||||
|
|
||||||
" Set the swap directory. The extra '/' suffix is required to make vim create
|
" Set the swap directory. The extra '/' suffix is required to make vim create
|
||||||
" unique filenames.
|
" unique filenames.
|
||||||
call mkdir(expand("~/.vim/swap"), "p", 0700)
|
call mkdir(expand("~/.cache/nvim/swap"), "p", 0700)
|
||||||
set dir=~/.vim/swap//
|
set dir=~/.cache/nvim/swap//
|
||||||
|
|
||||||
" Use system clipboard by default
|
" Use system clipboard by default
|
||||||
set clipboard +=unnamedplus
|
set clipboard +=unnamedplus
|
||||||
|
@ -198,7 +198,7 @@ set nowrap
|
||||||
|
|
||||||
" Enable persistent undo if it is supported
|
" Enable persistent undo if it is supported
|
||||||
if has('persistent_undo')
|
if has('persistent_undo')
|
||||||
let vundodir = expand('~/.vim/undo')
|
let vundodir = expand('~/.cache/nvim/undo')
|
||||||
if !isdirectory(vundodir)
|
if !isdirectory(vundodir)
|
||||||
call mkdir(vundodir)
|
call mkdir(vundodir)
|
||||||
endif
|
endif
|
||||||
|
|
Loading…
Reference in a new issue