当文本隐藏在 nowrap 下时转到实际的行尾

Go to actual end of line when text is hidden under nowrap

所以我的问题很简单,我想使用 0$ 去到实际的 start/end 行,当我有 nowrap放。基本上 nowrapg0 版本和 g$ 当设置 wrap 时。

你试过吗:

g0 or g<Home>       When lines wrap ('wrap' on): To the first character of
            the screen line.  |exclusive| motion.  Differs from
            "0" when a line is wider than the screen.
            When lines don't wrap ('wrap' off): To the leftmost
            character of the current line that is on the screen.
            Differs from "0" when the first character of the line
            is not on the screen.

g$ or g<End>        When lines wrap ('wrap' on): To the last character of
            the screen line and [count - 1] screen lines downward
            |inclusive|.  Differs from "$" when a line is wider
            than the screen.
            When lines don't wrap ('wrap' off): To the rightmost
            character of the current line that is visible on the
            screen.  Differs from "$" when the last character of
            the line is not on the screen or when a count is used.
            Additionally, vertical movements keep the column,
            instead of going to the end of the line.
            When 'virtualedit' is enabled moves to the end of the
            screen line.