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

前端 未结 2 968
盖世英雄少女心
盖世英雄少女心 2021-02-19 04:54

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

相关标签:
2条回答
  • 2021-02-19 05:23

    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
    
    0 讨论(0)
  • 2021-02-19 05:32

    There's also a MacVim-specific option, MMTextInsetLeft, which can be set with defaults write org.vim.MacVim MMTextInsetLeft VALUE in a terminal (where VALUE is the number of pixels in the left margin. There are also settings for right, top, and bottom margin, see help macvim-user-defaults for details.

    0 讨论(0)
提交回复
热议问题