在VIM中,为什么光标移动4yk而不是4yj?

use*_*476 4 vim neovim

要从当前位置+当前行向上拉4行,我可以使用4yk,并从当前位置+当前行向下划线4行,我可以使用4yj

但是4yk移动光标,而4yj不是(至少在我正在使用的vim版本中,neovim).

为什么是这样 ?

rom*_*inl 5

光标移动到动画的第一行.

使用4yk(或任何类似的向上运动),运动的第一行与当前行不同,因此光标移动.

使用4yj(或任何类似的向下运动),运动的第一行是当前行,因此光标不移动.

来自:help operator:

After applying the operator the cursor is mostly left at the start of the text
that was operated upon.  For example, "yfe" doesn't move the cursor, but "yFe"
moves the cursor leftwards to the "e" where the yank started.
Run Code Online (Sandbox Code Playgroud)