Executing:3,7y
does not change the line which contains the cursor (line('.')
). This is what I expected.
However, when I execute :3,7call XYZ()
, the current line goes to the third line. I didn't expect this behavior.
Why is that? Can I change the behavior so that the current line does not change?
:help :call
. This behaviour is explained there. It doesn't say how to keep the cursor on the original line though.