如何在Vim中普遍使用相对行号 [英] How to use relative line numbering universally in Vim

查看:133
本文介绍了如何在Vim中普遍使用相对行号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我喜欢Vim 7.3中的相对行编号功能,但是无法使其普遍坚持。对于许多文件,即使我已经指定,行编号仍将恢复为绝对模式:

I love the relative line numbering feature in Vim 7.3, but am having trouble making it stick universally. For many files, line numbering reverts to absolute mode, even though I have specified:

set rnu

在我的 .vimrc 文件中。任何想法可能是什么导致这?

in my .vimrc file. Any idea what could be causing this? I am using Vim 7.3 on OSX 10.6, with the Janus package of extensions.

推荐答案

尝试使用: verbose set rnu?:verbose set nu?找到导致问题的脚本。

Try using :verbose set rnu? and :verbose set nu? to find the script that is causing the problem.

这篇关于如何在Vim中普遍使用相对行号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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