junegunn / goyo.vim

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

Losing highlights after leaving Goyo mode #54

Closed oblitum closed 9 years ago

oblitum commented 9 years ago

I use the vim-operator-highlight. When I enter Goyo mode, it's still active, after leaving I miss all operator coloring.

junegunn commented 9 years ago

doautocmd Syntax on GoyoLeave event will re-do the highlighting.

oblitum commented 9 years ago

@junegunn shouldn't something like this be default behavior? I guess no one expects to get back in a different state than when entering Goyo mode.

junegunn commented 9 years ago

Let's put aside Goyo; If you change your color scheme, you'll realize that the plugin loses its highlight groups, no one expects that, right? You should file an issue on the plugin so that it reruns itself on ColorScheme event.

oblitum commented 9 years ago

@junegunn ok, thanks for the explanation.