VIM: different font size in each split

前端 未结 2 776
旧巷少年郎
旧巷少年郎 2021-01-19 03:41

Is it possible to set different font sizes in different split views in vim? I often do :vsplit to open documentation in one and source in another view, and would like to use

2条回答
  •  旧时难觅i
    2021-01-19 04:31

    Type :help 'guifont':

    'guifont' 'gfn'     string  (default "")
                global
                {not in Vi}
                {only available when compiled with GUI enabled}
    

    We can see that: guifont is a global option. So when you change it, it affect all windows.

    In the future, this option can be global or local to buffer/window(such as cm).

提交回复
热议问题