tagbar
tagbar copied to clipboard
Visual UI bug: Intro instantly disappears if tagbar is installed
Hi there,
The wonderful Vim intro disappears almost instantly if I install tagbar. Upon browsing this error pattern I found another plugin that used to have similar result, and they fixed something that was causing a redraw of the screen.
Vim version 8.2.2377 running on Mac OS Big Sur 11.1 ARM64 architecture.
Thanks,
/reportaman
Can you be more specific? I'm not aware of the Vim intro you are referring to. Also if you can include the details of the other plugin that might help too. Any screenshots would also be welcome so we know what you are referring to.
@raven42 Sure here's the info:
The other plugin that faced this issue: https://github.com/vim-airline/vim-airline/issues/1817.
The intro screen I am referring to is shown below (screenshot taken by disabling tagbar, if tagbar is enabled the screen instantly looks blank [i.e. it doesn't show text that VIM - Vi IMproved \n\n version 8.2.2377 by Bram Moolenaar et al\n Vim is open source...]):
![Screen Shot 2021-01-21 at 3 05 28 PM](https://user-images.githubusercontent.com/71736629/105425607-8c623800-5bfe-11eb-937b-30ca1c037b5f.png)
Hmm... OK I see the intro you are referring to now.
I am not able to reproduce this with a bare vim config with tagbar installed. Can you check your .vimrc
for a set shortmess
statement? That changes the default VIM intro message and that is what was in my .vimrc
which was preventing the banner from showing up for me.
You can verify the value of this setting with the following command:
:echo &shortmess
It should read something like filnxtToOS
or something like that. With all my plugins installed the banner loads just fine for me.
Another thing to note, it loading any of the plugin windows by default will clear the banner. This is the nature of windows in vim. So plugins like tagbar, or nerdtree and similar that use split windows will result in clearing the intro banner. This is unavoidable as this is part of vim. If you do a completely clean install without any plugins and without any .vimrc
, and then launch vim and do a :split
command to split the window, you will see the intro banner disappear.
I'd never thought about this, but my config flashes the intro message and then clears it too. However it's not tagbar
in my case because I disabled the plugin and still have the issue.
:echo &shortmess
filnxtToOFA
No shortmess
does not appear in my init.