linux - VIM:标尺列值中的连字符

标签 linux vim

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

enter image description here

在 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/

相关文章:

linux - Linux 上的 openni 抓取器

vimrc 包装变量定义

linux - 预链接仅对相对重定位有影响

linux - 为 tcpdump 编写一个 linux 脚本以停止并再次运行,但将信息保存在另一个文件中

json - 在 Vim 中保存时缩进 JSON

vim - VSCode Vim 扩展搜索可视模式选中的文本

vim - 当文件已经垂直打开时,在 vim 中水平打开不同的文件(不关闭文档)

vim - 使 'n' 始终向前搜索,无论是/还是 ?用于搜索

linux - 在 GNU 并行中连接目录和文件名

c++ - GTK : How to set the Height of a VBox?