Skip to content

guifontwide not work until manual reload vimrc #726

Open

Description

@zmen

Version

VIM - Vi IMproved 8.1 (2018 May 18, compiled Aug  3 2018 05:14:32)
macOS version
Include patches: 1-235
Compiled by travis@Traviss-Mac-1044.local

Steps to reproduce

  1. add guifontwide setting to .vimrc set guifontwide=<FontName>
  2. reopen MacVim, typing any double width character
  3. reload .vimrc by source $MYVIMRC

What is expected

The double width character is exactly the font I set before or after reloading .vimrc

What is actually happening

The font only display correctly after reloading .vimrc

Example:

my setting
step1

after reopen macvim
step2

then reload vimrc
step3

Activity

  1. XiongLiding commented on Sep 18, 2019

    @XiongLiding

    Do you use plugin vim-airline?
    Have the same problem and comment out vim-airline can fix it.
    Maybe powerline font impact guifontwide, don't sure.

    ---- Edit ----
    After more try...
    If open file with drag to icon or right click menu, font is always correct no matter vim-airline used.
    Buf if open a new macvim window first, then use :e to open file, font is incorrect when vim-airline used

  2. eirnym commented on Sep 18, 2019

    @eirnym
    Contributor

    @surmind thank you for further investigation. Could you ask the same question in vim-airline plugin? Their collaboration might be helpful as well

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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