From 1e190e9a8d3fc8d419f5df0bbec0b505cf603179 Mon Sep 17 00:00:00 2001 From: Andy Bohne Date: Mon, 14 Jan 2019 15:15:47 -0500 Subject: [PATCH] Replace call to deprecated function --- vim/settings/vim-fugitive.vim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vim/settings/vim-fugitive.vim b/vim/settings/vim-fugitive.vim index b4ff5a0a..acb69f22 100644 --- a/vim/settings/vim-fugitive.vim +++ b/vim/settings/vim-fugitive.vim @@ -3,12 +3,12 @@ " parent directory. Here’s a mapping of .. to the above command, but " only for buffers containing a git blob or tree autocmd User fugitive - \ if fugitive#buffer().type() =~# '^\%(tree\|blob\)$' | + \ get(b:, 'fugitive_type', '') =~# '^\%(tree\|blob\)$' | \ nnoremap .. :edit %:h | \ endif -" Every time you open a git object using fugitive it creates a new buffer. -" This means that your buffer listing can quickly become swamped with +" Every time you open a git object using fugitive it creates a new buffer. +" This means that your buffer listing can quickly become swamped with " fugitive buffers. This prevents this from becomming an issue: autocmd BufReadPost fugitive://* set bufhidden=delete