From edb342cf377c7a1edd18ced34d6ffb54cd88eb55 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Wed, 6 May 2020 22:04:32 +1200 Subject: Correct buffer hooks I need to remember to read the manual properly. --- plugin/undofileskip.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/undofileskip.vim b/plugin/undofileskip.vim index c6b3b1e..7b3373d 100644 --- a/plugin/undofileskip.vim +++ b/plugin/undofileskip.vim @@ -30,6 +30,6 @@ endif " Check the path on every buffer rename, create, or read augroup undofileskip autocmd! - autocmd BufAdd,BufNewFile,BufRead * + autocmd BufFilePost,BufNewFile,BufRead * \ let &l:undofile = undofileskip#Check(expand('')) augroup END -- cgit v1.2.3