From a85118f40ee4aef1f2e07c1d692d46fc04ee29c2 Mon Sep 17 00:00:00 2001 From: M1dgard Date: Sun, 4 Nov 2018 00:19:46 +0100 Subject: [PATCH] [nvim] Keep undo history when closing nvim This is great --- nvim-init.vim | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/nvim-init.vim b/nvim-init.vim index 64c548b..fca267b 100644 --- a/nvim-init.vim +++ b/nvim-init.vim @@ -170,6 +170,11 @@ augroup spellcheck_textfiles au! BufNewFile,BufRead *.md,*.txt,*.tex setlocal spell augroup END +" Keep undo history {{{2 +" ====================== +set undodir=/tmp/vim-undodir +set undofile + " Plug-ins {{{1 " =============