Comments (5)
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.
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.
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.
https://github.com/junegunn/goyo.vim/wiki/Customization#zoomwin
I'll close this issue. Thank you.
from goyo.vim.
Alright. Just to let you know that it was erroneous and now is updated.
from goyo.vim.
Related Issues (20)
- Clarify docs around g:goyo_linenr
- Allow carriage returns
- Goyo, fzf and tabs issue. HOT 3
- Unknown Function: Running Goyo on Ubunti 22.04 HOT 4
- Remove ^^^^^^^^^^^^ at the end of page HOT 4
- Fix to syntax highlighting breaking (in lua)
- goyo doesn't hide lualine HOT 2
- Goyo enter and exit does not remove tmux HOT 5
- Determing if Goyo is Enabled via VimScript HOT 1
- Options are not mantained when changing buffers with fzf HOT 1
- Relationship between wrapmargin and textwidth setting in vimrc and goyo mode formatting/rendering
- Not allowed to change the window layout in this autocmd when quitting Goyo HOT 12
- When enabled, goyo creates empty buffers surrounding the current buffer in its window HOT 2
- wrong cursor position when switching between buffers
- Do not disable statusline? HOT 1
- Compatibility with BufExplorer
- Installable without a plugin manager HOT 1
- EndOfBuffer symbols (~) and StatusLine carots (^) appear on eink screen HOT 11
- How to keep Goyo enabled across buffers?
- :Goyo doesn't unset winbar HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from goyo.vim.