我如何在vim中增加行号边距的间距? [英] How do I increase the spacing of the line number margin in vim?

查看:283
本文介绍了我如何在vim中增加行号边距的间距?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在vim中的色彩设计有问题:

I have a problem with my colorscheme in vim:


(来源: tinygrab.com )


(source: tinygrab.com)

行号与代码太接近.如何增加行号右边距的宽度?

The line numbers are too close to the code. How I can increase the width of the line numbers' right margin?

推荐答案

看代码,这变成了不可能(很明显,没有打补丁vim):vim总是格式化行号以占据整个可用宽度,然后只留下一个空格(%* ld"格式)代码中的说明符确保了这一点.

Looking at the code, it turns to be impossible (without patching the vim, obviously): vim always formats the line numbers to take up the whole available width, leaving just a single space afterwards (the "%*ld " format specifier in the code makes sure of that).

这篇关于我如何在vim中增加行号边距的间距?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆