Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MacVim: how do I set a left gutter (margin) for my buffers?

Tags:

vim

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?

like image 820
Scott Avatar asked Oct 29 '11 20:10

Scott


People also ask

What is gutter margin in MS Office?

A gutter margin adds extra space to the side, top margin, or inside margins of a document you plan to bind. That helps ensure that text isn't obscured by the binding. Click Layout > Margins > Custom Margins. In the Gutter box, enter a width for the gutter margin.

Where is gutter margin?

Gutter margin is the margin that is added to the binding side of the page when printing.


1 Answers

I use line numbering for that reason (:set number). But if you want a margin without the numbers, use:

:set foldcolumn=<width>

Example:

:set foldcolumn=3
like image 97
MisterEd Avatar answered Oct 05 '22 22:10

MisterEd