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'))