preservim / vim-thematic

Alter Vim's appearance to suit your task & environ
Other
224 stars 6 forks source link

guifont error #20

Closed Freed-Wu closed 4 years ago

Freed-Wu commented 4 years ago

OS: linux vim: gvim8.1

when :ThematicRandom the guifont will be set to '\ -1'. but it is not a correct font. in my gvim on Windows OS 10, this error do not appear. I doubt that it is involved in font name difference between linux and windows? because i find the same font has different name in Windows 10 and Linux.

Now i use this code to solve this problem temporaryly.

augroup init_ThematicRandom "{{{
    autocmd!
    autocmd VimEnter * let s:guifont = &guifont
                \| ThematicRandom
                \| let &guifont = s:guifont
                \| unlet s:guifont
augroup END "}}}

Thank you!