【问题标题】:How to create a border between the line numbers and text in Vim如何在 Vim 中的行号和文本之间创建边框
【发布时间】:2012-09-29 08:21:58
【问题描述】:

我想在行号右侧和文本左侧设置一条细边框。

【问题讨论】:

    标签: terminal vim


    【解决方案1】:

    您可以使用不同的颜色来突出显示LineNr。例如:

    :hi LineNr   cterm=bold ctermbg=gray ctermfg=black gui=bold guibg=gray guifg=white
    

    【讨论】:

      【解决方案2】:

      我认为这是不可能的。

      但是,您可以使排水沟变宽。

      :set numberwidth=3
      

      【讨论】:

      • 这适用于在数字左侧添加装订线,但不适用于右侧。有没有办法做到这一点?
      猜你喜欢
      • 2020-04-21
      • 1970-01-01
      • 1970-01-01
      • 2011-02-01
      • 1970-01-01
      • 2015-12-31
      • 2015-10-10
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多