Goyo overwrites filetype
- Dominant language
- Vim Script
- Stars
- 4.7k
- Forks
- 118
- PR merge metrics
- No merged PRs in 30d
Description
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
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce with ~/.vim/ftplugin/markdown.vim configured to autostart Goyo, then inspect :verbose set filetype? and the reported filetype.vim line 2247. Compare this with starting Goyo interactively; done means opening a Markdown file with the ftplugin leaves filetype set to markdown without a manual reset.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- vim
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100