VIM:标尺列值中的连字符

Jus*_*ble 4 linux vim

我在 vim 中打开了标尺,但列值是用连字符分隔的两个数字。例如1-8。

在此输入图像描述

vim 中带连字符的列值到底意味着什么?

FDi*_*off 7

看一眼:h ruler

相关部分复制如下

If the number of characters displayed is different from the number of
bytes in the text (e.g., for a TAB or a multi-byte character), both
the text column (byte number) and the screen column are shown,
separated with a dash.
Run Code Online (Sandbox Code Playgroud)

的解释1,1-8

第一个 1 表示光标位于第 1 行。 1-8 表示光标位于第一个文本列(即字符串中的第一个字符),并且它是第 8 个可视列。因此我们可以得出结论,您的光标位于制表位和 shiftwidth 设置为 8 的选项卡上。