0

我有一个使用 Windows 换行符的 ANSI XML 文件。

在一行的末尾,我有 CRLF[space][space] (0 x 0D 0A 20 20)

在其他文本编辑器中,这显示为换行符、空格。在 VIM 中,它似乎在做一种“分页符”而不是换行符,在左边距下有一屏 @ 字符。

我尝试使用不同的编码和显式换行格式重新加载文件,但没有任何有用的区别。

有人了解这种现象吗?

谢谢

4

1 回答 1

0

这只是试图一次显示一条长线。您可以使用 lastline 将其关闭

'display' 'dy' 字符串 (缺省为 "") 全局 {Vi 无此功能} 改变文本的显示方式。这是逗号分隔的标志列表:

lastline    When included, as much as possible of the last line
        in a window will be displayed.  When not included, a
        last line that doesn't fit is replaced with "@" lines.

uhex        Show unprintable characters hexadecimal as <xx>
        instead of using ^C and ~C.
于 2013-09-08T21:50:10.297 回答