I want the tagbar VAR plugin to run when opening certain types of files, so I added the following to my .vimrc:
if has("gui_running") autocmd BufEnter *.hs nested TagbarOpen
However, this does not work as I expected. It opens a side window, but the side window does not display anything, and my cursor is inside it. I cannot switch windows with one click or CTRL-W move commands.
However, when I launch TagbarOpen manually, it works fine.
Has anyone else tried this or the wrong command came out?
Ana
source share