Closed astier closed 4 years ago
Here is what I added to my vimrc to solve it:
au vimenter * if len(getbufinfo({'buflisted':1})) < 2 | se stal=1 | else | exe 'WintabsAllBuffers' | en
au filetype fzf,nerdtree if len(getbufinfo({'buflisted':1})) < 2 | se stal=1 | en
au bufadd,winenter * if len(getbufinfo({'buflisted':1})) > 1 | exe 'WintabsAllBuffers' | se stal=2 | en
au bufdelete * if len(getbufinfo({'buflisted':1})) < 3 | se stal=1 | en
Hi. I would like to display the wintabs in the tabline only if more than one buffer or tab is open. Is this possible? Thank you.