junegunn / goyo.vim

:tulip: Distraction-free writing in Vim
MIT License
4.49k stars 115 forks source link

Goyo & Opacity #243

Open abd96 opened 3 years ago

abd96 commented 3 years ago

When quitting Goyo the Opacity value of my Gnome-terminal returns to standard. Any Solutions ?

hatunike commented 3 years ago

I don't know if this will work for you, but i solved this problem by resetting my transparency during the goyo_leave autocmd

basically adding :

hi NonText ctermbg=none
hi Normal guibg=NONE ctermbg=NONE

To my existing

function! s:goyo_enter()
" put here
endfunction

autocmd! User GoyoLeave call <SID>goyo_leave()