Giter Club home page Giter Club logo

Comments (5)

junegunn avatar junegunn commented on August 21, 2024

I understand your concern. But it's simply not possible for me to try to disable every plugin out there (or will be there) that is not compatible with Goyo. And that's the reason I introduced callback functions. Goyo still disables some plugins, such as airline, not because I believe it's Goyo's responsibility to do so, but because of their extreme popularity, and I'm reluctant to add more code for other plugins. In that sense, I'm not sure about ZoomWin either, especially when it seems to me that :tab split is a cleaner solution than ZoomWin.

from goyo.vim.

 avatar commented on August 21, 2024

The advantage of ZoomWin seemed to me, that, when toggling it again
after having maximized the window, it will restore the surrounding
window positions. Closing the split tab will not necessarily do that
(if you switched to other tabs in the meanwhile).

Ok, surely you can't keep track of compatibilities with every plug-in
whatsoever.

Perhaps users still could contribute their share to avoid these. I put
these inside the goyo_before respectively _after functions:

if exists("g:loaded_ZoomWinPlugin")
if exists(":ZoomWin")
delcommand ZoomWin
endif
silent! nunmap ZoomWin
endif

if exists("g:loaded_ZoomWinPlugin")
command! ZoomWin call ZoomWin()
nmap ZoomWin call ZoomWin()
endif

Am vendredi 28 mars 2014 02:28:28 schrieb Junegunn Choi:

I understand your concern. But it's simply not possible for me to try
to disable every plugin out there (or will be there) that is not
compatible with Goyo. And that's the reason I introduced callback
functions
#9 (comment).
Goyo still disables some plugins, such as airline, not because I
believe it's Goyo's responsibility to do so, but because of their
extreme popularity, and I'm reluctant to add more code for other
plugins. In that sense, I'm not sure about ZoomWin either, especially
when it seems to me that |:tab split| is a cleaner solution than ZoomWin.


Reply to this email directly or view it on GitHub
#22 (comment).

from goyo.vim.

junegunn avatar junegunn commented on August 21, 2024

There is a GitHub wiki page I created for that purpose:
https://github.com/junegunn/goyo.vim/wiki/Customization

However I don't know if it's possible to allow other users to edit the page 😕
Anyway, I'll add your code to the page. Thanks.

from goyo.vim.

junegunn avatar junegunn commented on August 21, 2024

https://github.com/junegunn/goyo.vim/wiki/Customization#zoomwin

I'll close this issue. Thank you.

from goyo.vim.

 avatar commented on August 21, 2024

Alright. Just to let you know that it was erroneous and now is updated.

from goyo.vim.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.