Open addisonamiri opened 8 years ago
I'm not sure if I follow your question. Goyo hides the statusline by default. So you want it to be visible, or...?
Ah yes I'm sorry. I guess what I would like is an option to enable the statusline and make it aligned with the Goyo window. I've already taken everything out of my statusline except the filename so It would be nice to have a small indication of what file I'm working on. Is this possible with the way that Goyo is currently structured?
Thanks for your help.
On Mon, Jan 11, 2016 at 2:01 AM Junegunn Choi notifications@github.com wrote:
I'm not sure if I follow your question. Goyo hides the statusline by default. So you want it to be visible, or?
— Reply to this email directly or view it on GitHub https://github.com/junegunn/goyo.vim/issues/88#issuecomment-170450367.
First of all, Thank you sincerely @junegunn for all of your wonderful plugins. I loved every single one of them. Regarding this request, I would also second this, because I track whether I have edited the file or not (via the modified-status in statusline), but I also love to have Goyo on all the time (due to its screen-centered placement).
You can currently override the statusline and its color in GoyoEnter event.
set statusline=%f\ %m
hi statusline ctermfg=white
A caveat is that Goyo will re-clear the config when you try to move your cursor to another window. This is required to suppress some fancy statusline plugins. Anyway, I'll think about better options if I get some time, but if all you're interested in are just the name of the file and its modification status, you can simply hit CTRL-G in normal mode.
I would like a function that I could drop into my statusline to align my statusline text with the goyo margins. Is this possible? I don't know much about vimscripting so I don't know if statusline functions can be added by plugins. If it's easy to implement I would greatly appreciate it.