[vim] Explicitly specify swap and undo directories
This commit is contained in:
parent
3653b7c169
commit
e71f78feee
1 changed files with 4 additions and 2 deletions
|
@ -72,10 +72,12 @@ opt.laststatus = 2
|
|||
opt.background = "dark"
|
||||
|
||||
-- Save all this metadata while editing.
|
||||
opt.swapfile = true
|
||||
opt.backup = true
|
||||
opt.undofile = true
|
||||
opt.backupdir = {vim.fn.stdpath("data") .. "/backup//", "."}
|
||||
opt.swapfile = true
|
||||
opt.directory = {vim.fn.stdpath("data") .. "/swap//", "."}
|
||||
opt.undofile = true
|
||||
opt.undodir = {vim.fn.stdpath("data") .. "/undo//", "."}
|
||||
|
||||
-- Fields to save in the Shada file. Parameters as follows: (see :help shada)
|
||||
-- % number of buffers to save and restore when no file argument is given
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue