macvim-dev / macvim

Vim - the text editor - for macOS
https://macvim.org
Vim License
7.53k stars 685 forks source link

guifontwide not work until manual reload vimrc #726

Open zmen opened 6 years ago

zmen commented 6 years ago

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

XiongLiding commented 5 years ago

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

eirnym commented 5 years ago

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