Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable minibufexpl while in Goyo mode #9

Closed
adelarsq opened this issue Dec 13, 2013 · 5 comments
Closed

Disable minibufexpl while in Goyo mode #9

adelarsq opened this issue Dec 13, 2013 · 5 comments
Labels

Comments

@adelarsq
Copy link

Disable by default minibufexpl plugin (https://github.com/techlivezheng/vim-plugin-minibufexpl.git) while in Goyo mode.

@junegunn
Copy link
Owner

Hi, as far as I know, MiniBufExpl is local to each tab and thus not visible in Goyo tab which has only one buffer.
This is how it looks on my machine: http://imgur.com/ohnqEuS

@adelarsq
Copy link
Author

The problem is the configuration:

let g:miniBufExplBuffersNeeded  = 1

Without this configuration works fine.

@junegunn
Copy link
Owner

Have you tried setting up g:goyo_callbacks? (See https://github.com/junegunn/goyo.vim#callbacks)

Try adding the following code to your .vimrc:

function! s:goyo_before()
  MBEClose
  wincmd w
endfunction

let g:goyo_callbacks = [function('s:goyo_before')]

Before g:goyo_callbacks was introduced, I'd tried to include code for toggling other plugins, such as vim-airline or powerline. However, I quickly realized that it is not possible or appropriate for this plugin to handle every other plugin out there. So I added g:goyo_callbacks, which gives the user greater flexibility to customize the window.

@adelarsq
Copy link
Author

I was doing, but was wrong. You are right, the appropriate way to do this is outside from plugin. To help beginers like me may be that this information can be avaiable in the documentation, updated for each plugin. What you think?
By the way, my problem is solved.
Thanks @junegunn

@junegunn
Copy link
Owner

No problem. I've just created a wiki page. I'll add the link to in on the README page. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants