It seems like running the Goyo command (a distraction free editing plugin) on loading a pandoc document should be really simple, but
execute "Goyo"
in .config/nvim/ftplugin/pandoc.vim
leads the shell to produce the error
“nvim test.md” terminated by signal SIGSEGV (Address boundary error)
The filetype is correctly detected (echo 'hello'
works), but for some reason it doesn't like executing Goyo. I think the problem is that Goyo is being executed before the buffer is fully loaded, but I'm not sure.
Any ideas?
Goyo
alone will do the trick; (2) consider checking the command exists before calling it; (3) consider putting your script in~/.vim/after/ftplugin/pandoc.vim
so you don’t override the vim runtime files. But I can’t tell you why that particular command is failing; have you searched the issue tracker on their github for similar problems??