diff options
Diffstat (limited to '')
| -rw-r--r-- | .vim/plugin/undo.lua | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/.vim/plugin/undo.lua b/.vim/plugin/undo.lua new file mode 100644 index 0000000..aed6195 --- /dev/null +++ b/.vim/plugin/undo.lua @@ -0,0 +1,10 @@ +-- persistent undo + +local undodir = vim.fn.stdpath('cache') .. '/undodir' + +if vim.fn.isdirectory(undodir) == 0 then + vim.fn.mkdir(undodir, 'p', '0700') +end + +vim.g.undodir = undodir +vim.opt.undofile = true |