From 20ff7303a6716c97411a4e681308d43cf0f4baa3 Mon Sep 17 00:00:00 2001 From: Jan Larres Date: Thu, 24 Nov 2011 01:27:54 +1300 Subject: [PATCH] Update tagbar when filetype changes --- autoload/tagbar.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/tagbar.vim b/autoload/tagbar.vim index 480bdc9..134967c 100644 --- a/autoload/tagbar.vim +++ b/autoload/tagbar.vim @@ -891,7 +891,7 @@ function! s:CreateAutocommands() \ if line('$') < g:tagbar_updateonsave_maxlines | \ call s:AutoUpdate(fnamemodify(expand(''), ':p')) | \ endif - autocmd BufEnter,CursorHold * call + autocmd BufEnter,CursorHold,FileType * call \ s:AutoUpdate(fnamemodify(expand(''), ':p')) autocmd BufDelete * call \ s:CleanupFileinfo(fnamemodify(expand(''), ':p'))