Comments (4)
I removed StatusLine
and StatusLineNC
from line 113
in goyo.vim
Path: ~/.vim/plugged/goyo.vim/autoload/goyo.vim
function! s:tranquilize()
let bg = s:get_color('Normal', 'bg#')
for grp in ['NonText', 'FoldColumn', 'ColorColumn', 'VertSplit',
\ 'StatusLine', 'StatusLineNC', 'SignColumn'] # line 113
" -1 on Vim / '' on GVim
if bg == -1 || empty(bg)
call s:set_color(grp, 'fg', get(g:, 'goyo_bg', 'black'))
call s:set_color(grp, 'bg', 'NONE')
else
call s:set_color(grp, 'fg', bg)
call s:set_color(grp, 'bg', bg)
endif
call s:set_color(grp, '', 'NONE')
endfor
endfunction
Before:
\ 'StatusLine', 'StatusLineNC', 'SignColumn'] # Line 113
After:
\ 'SignColumn'] # Line 113
and got interesting effect that I like.
This is somehow solving the issue, although it's not elegant.
Screenshots:
Before:
After:
I hope it will help someone.
from goyo.vim.
In the ~/.vim/plugged/goyo.vim/autoload/goyo.vim
delete 'StatusLine'
in line 110 and add this line of code outside the for loop (between line 121 and 122)
call s:set_color('StatusLine', 'bg', 'NONE')
from goyo.vim.
In the
~/.vim/plugged/goyo.vim/autoload/goyo.vim
delete'StatusLine'
in line 110 and add this line of code outside the for loop (between line 121 and 122)
call s:set_color('StatusLine', 'bg', 'NONE')
This solution only works if the line 109:
let bg = s:get_color('Normal', 'bg#')
returns a color in place of -1
on Vim or ''
on GVim.
A proper solution has to guarantee that StatusLine
and StatusLineNC
are highlighted differently as explained in the docs (:h StatusLineNC
):
StatusLineNC Status lines of not-current windows.
Note: If this is equal to "StatusLine", Vim will use "^^^" in
the status line of the current window.
@junegunn Any elegant solution to solve this? I haven't been able to think of any.
from goyo.vim.
Related Issues (20)
- goyo and shade conflict ends in core dump
- [Feature Request] Add function callbacks for before entering and leaving Goyo
- Lightline issue HOT 1
- Conflict with BufAdd and BufNewFile autocommands in my .vimrc
- 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
- 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
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.