MacVim:如何为缓冲区设置左装订线(边距)? [英] MacVim: how do I set a left gutter (margin) for my buffers?
本文介绍了MacVim:如何为缓冲区设置左装订线(边距)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在MacVim中,我正在所有缓冲区中编辑的文本严重卡在缓冲区的左侧.我发现这在视觉上非常刺耳,尤其是当我查看垂直裂缝时.
In MacVim the text that I'm editing in all buffers is jammed up hard against the left hand side of the buffer. I find this quite visually jarring, especially if I'm looking at a vertical split.
看起来我的文字和窗口边框之间只有一个像素.
It looks like there is only one pixel between my text and the window border.
是否存在允许我添加字符宽度作为装订线或边距的设置?
Is there a setting that will allow me to add, say, a character width as a gutter or margin?
推荐答案
出于这个原因,我使用行编号(:set number
).但是,如果您希望没有数字的边距,请使用:
I use line numbering for that reason (:set number
). But if you want a margin without the numbers, use:
:set foldcolumn=<width>
示例:
:set foldcolumn=3
这篇关于MacVim:如何为缓冲区设置左装订线(边距)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文