junegunn / goyo.vim

:tulip: Distraction-free writing in Vim
MIT License
4.52k stars 118 forks source link

Cant disable plugin 'buftabline' when opening Goyo #171

Closed ghost closed 6 years ago

ghost commented 6 years ago

Hi,

thanks for your beautiful work with goyo, using it every day :+1:

The only thing I just cant figure out is how to disable the plugin buftabline

I have this in my .vimrc

function! s:goyo_enter()
  let g:buftabline_show = 0
  " ...
endfunction

function! s:goyo_leave()
  let g:buftabline_show = 2 
  " ...
endfunction

autocmd! User GoyoEnter call <SID>goyo_enter()
autocmd! User GoyoLeave call <SID>goyo_leave()

But I just cant get it to work!

I have tried let g:buftabline_show = 0without the goyo function and that works as expected. Just not together with goyo though.

The rest of my .vimrc are here:

Below a screenshot with the buftabline that I dont want to have when using goyo.

Any ideas?

skaermbillede fra 2018-01-20 11-09-57

junegunn commented 6 years ago

I don't know anything about the plugin so this is really not something I can answer. But see https://github.com/ap/vim-buftabline/blob/master/doc/buftabline.txt#L26-L28

AxelBohm commented 5 years ago

I have more or less the same issue and don't know how the previous comment answers this. The problem is, even if I have the buftabline disabled (let g:buftabline_show=0) but merely installed I see the above behaviour (+ lorem.md 5+ lorem.md appearing on top).

vigilancer commented 5 years ago

Confirm. Problem persist even with appropriate calls :call buftabline#update(0). Anyone in search for solution please see my PR in vim-buftabline repo.

AxelBohm commented 5 years ago

hey @vigilancer, thanks for the PR. When I disable buftabline, i.e. let g:buftabline_show=0, everything works as intended. However, when enabled the same problem persists, are you aware of this fact?

vigilancer commented 5 years ago

@AxelBohm I think it would be more appropriate to discuss PR in related repository.