我在 vim 中打开了标尺,但列值是由连字符分隔的两个数字。例如1-8.
在 vim 中带连字符的列值到底意味着什么?
最佳答案
看看: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.
1,1-8
的解释
第一个 1 表示光标在第 1 行。1-8 表示您的光标在第一个文本列(即字符串中的第一个字符)并且它是第 8 个可视列。因此我们可以得出结论,您的光标位于制表位和 shiftwidth 设置为 8 的选项卡上。
关于linux - VIM:标尺列值中的连字符,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17376257/