根据您的帮助全屏(:h fullscreen
)有选择定制的,当你进入全屏模式会发生什么行为这与fuoptions
在我的MacVim fuoptions设置设为
fuoptions=maxvert,maxhotz
当我们看:h fuoptions
maxvert When entering fullscreen, 'lines' is set to the maximum number
of lines fitting on the screen in fullscreen mode. When
leaving fullscreen, if 'lines' is still equal to the maximized
number of lines, it is restored to the value it had before
entering fullscreen.
maxhorz When entering fullscreen, 'columns' is set to the maximum number
of columns fitting on the screen in fullscreen mode. When
leaving fullscreen, if 'columns' is still equal to the maximized
number of columns, it is restored to the value it had before
entering fullscreen.
这意味着,当你进入全屏模式的MacVim调整大小以到线,它可以列的最大数量。 (忽略您设置的值)
要解决此问题,您可以添加set fuoption-=maxhorz
以删除违规选项,或者添加set=maxvert
以强制其仅使用maxvert(无论是否设置了其他选项)。这会阻止MacVim在水平方向上覆盖您的设置。
所以你的固定命令将看起来像
command! DistractionFreeMode set guioptions-=r gfn=Cousine:h12 showtabline=0 fuoptions-=maxhorz fullscreen laststatus=0 noruler wrap linebreak nolist linespace=5 foldcolumn=3 nonumber columns=80
您在同一时间有列= 80和全屏在那里。这两个命令可能不会很好地相互配合。你确定你想要他们两个吗?我也无法复制不被激活的nolist。检查是否有任何激活列表的autocmd。 – FDinoff
@FDinoff嗯,现在我不能重现'nolist'也没有设置...所以忘掉那个(但谢谢你检查!)。是的,我希望列和全屏可以在一起。在屏幕截图中(我现在发布的内容)包含在上面的外观是必要的。当我在运行命令后设置列时,它们似乎能够很好地协同工作。 –