junegunn / goyo.vim

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

Goyo overwrites filetype #246

Open dgsiegel opened 3 years ago

dgsiegel commented 3 years ago

I've got a small file in ~/.vim/ftplugin/markdown.vim to set a few markdown specific settings. In that file I also autostart goyo.

Even though I read a markdown file, the filetype will be reset:

:verbose set filetype?
  filetype=conf
        Last set from /usr/share/vim/vim82/filetype.vim line 2247

This does not happen if I start Goyo inside vim. The only solution right now seems to reset the filetype after calling goyo, e.g.

[...]
Goyo
set filetype=markdown