yegappan / taglist

Source code browser plugin for Vim
BSD 2-Clause "Simplified" License
92 stars 39 forks source link

E117: Unknown function: taglist#Tlist_Window_Check_Auto_Open #8

Closed tr4v3ler closed 2 years ago

tr4v3ler commented 2 years ago

In my ~/.vimrc, Tlist_Auto_Open is enabled. When I start vim in a folder, I met this error:

Error detected while processing VimEnter Autocommands for "*":
E117: Unknown function: taglist#Tlist_Window_Check_Auto_Open
yegappan commented 2 years ago

I have committed 293152b252ee9f972c430e47e6a2281373c3afce to fix this issue.

tr4v3ler commented 2 years ago

I have committed 293152b to fix this issue.

Thank you for your reply. The bug has indeed been fixed, but when I start vim in a directory, the taglist window does not pop up. I expect a blank window to pop up, and taglist will update automatically when I later open a file.

yegappan commented 2 years ago

The taglist window is automatically opened only when you supply a filename to Vim. If the file is not one of the supported types (e.g. a plain text file) or is a directory, then the taglist window is not opened. This is to avoid opening the taglist window when editing a temporary file (e.g. a Git commit message).