VIM 初始设置:更改左侧行号的背景颜色? [英] VIM initial settings: change background color for line number on the left side?

查看:29
本文介绍了VIM 初始设置:更改左侧行号的背景颜色?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用 _vimrc 来配置我的 vim 7.2 (windows) 默认设置.一种设置设置编号"将在左侧显示行号.我的 vim 背景颜色是白色(我找不到这个设置.也许默认是白色.无论如何我接受这个设置).

I use _vimrc to configure my vim 7.2 (windows) default settings. One setting "set number" will display line numbers on the left side. My vim background color is white (I cannot find setting for this. Maybe the default is white. Anyway I accept this setting).

我希望行号的背景颜色为灰色或暗色.我可以在 _vimrc 中放入什么命令来配置这个默认设置?

I would like the background color for line numbers to be Grey or dimmed color. What is the command I can put in my _vimrc to configure this default setting?

推荐答案

highlight LineNr ctermfg=grey ctermbg=white

这篇关于VIM 初始设置:更改左侧行号的背景颜色?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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