From de6c05720cdf74c0218218d7207f700232a5b6dc Mon Sep 17 00:00:00 2001 From: Carlos Coelho Date: Tue, 14 Nov 2017 10:58:31 -0300 Subject: [PATCH] Use NERDTree.root instead of removed NERDTreeRoot As of scrooloose/nerdtree@d36b793, it was recommended to use NERDTree.root instead of deprecated NERDTreeRoot. Also, this command seems to be recently removed since it was throwing an Undefined variable: b:NERDTreeRoot when starting Vim. --- plugin/fugitive.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim index 13efb30..913f91f 100644 --- a/plugin/fugitive.vim +++ b/plugin/fugitive.vim @@ -241,7 +241,7 @@ augroup fugitive autocmd! autocmd BufNewFile,BufReadPost * call fugitive#detect(expand('%:p')) autocmd FileType netrw call fugitive#detect(expand('%:p')) - autocmd User NERDTreeInit,NERDTreeNewRoot call fugitive#detect(b:NERDTreeRoot.path.str()) + autocmd User NERDTreeInit,NERDTreeNewRoot call fugitive#detect(b:NERDTree.root.path.str()) autocmd VimEnter * if expand('')==''|call fugitive#detect(getcwd())|endif autocmd CmdWinEnter * call fugitive#detect(expand('#:p')) autocmd BufWinLeave * execute getwinvar(+bufwinnr(+expand('')), 'fugitive_leave')