From 478e7e4b28c35e7b9e35eac4d90b0ae41b46a627 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A1=BE=E9=A2=A2?= Date: Sat, 27 May 2017 18:43:21 +0800 Subject: [PATCH] Integrate nerdtree Automatically call TLoad() when BufReadPost event occurs. See more details here: https://github.com/scrooloose/nerdtree/issues/617#issuecomment-249002351 --- plugin/templates.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/templates.vim b/plugin/templates.vim index 4028ffb..64b9ec3 100644 --- a/plugin/templates.vim +++ b/plugin/templates.vim @@ -74,7 +74,7 @@ endif if !g:templates_no_autocmd augroup Templating autocmd! - autocmd BufNewFile * call TLoad() + autocmd BufNewFile,BufReadPost * call TLoad() augroup END endif