Skip to content

VimWiki and Goyo #1380

Open
Open
@mbbmbbmm

Description

@mbbmbbmm

Hi, I am trying to set up VimWiki in harmony with Goyo. I'm toggling Goyo with a leader key mapping.
The problem is (I think) that Goyo reloads the colorscheme from scratch and I lose the rendering for italic, bold etc. and also the header colors I set with e.g. hi VimwikiHeader1 guifg=#DD7722... Apparently the solution is hinted at in issue #84 of the Goyo repo. But I don't understand it at all (complete vim script idiot).
So how would I force Vim to reload VimWiki's visuals after exiting Goyo?

VimWiki settings from your .vimrc

let wiki_1 = {}
let wiki_1.path = '~/vimwiki/'
let wiki_2 = {}
let wiki_2.path = '~/Documents/sqwiki/'
let wiki_2.syntax = 'markdown'
let wiki_2.ext = '.md'
let g:vimwiki_list = [wiki_1, wiki_2]

hi VimwikiHeader1 guifg=#DD7722
hi VimwikiHeader2 guifg=#33BB88
hi VimwikiHeader3 guifg=#7777CC
hi VimwikiHeader4 guifg=#33BBEE
hi VimwikiHeader5 guifg=#AACCCC
hi VimwikiHeader6 guifg=#777744

Include the syntax you are using (default / Markdown / MediaWiki)
default and Markdown

Provide a detailed description of the problem including steps to reproduce the issue
See above, basically :

  • Open VimWiki
  • Toggle Goyo on - colors/style correct,
  • Toggle Goyo off - colors/style incorrect

Include the output of :VimwikiShowVersion
I am still using VimWiki 2.3 (on GVim 9.0, on Windows 10) - any VimWiki version above gave me errors and wouldn't run.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions