0

Using a simple example:

h[]ello

If I type 2o<esc>, the cursor will be moved to the last inserted line like this:

hello

[]

But if I type 2O<esc>, the cursor will be moved to the last inserted line instead of the first inserted line:


[]
hello

And the expected result is this:

[]

hello

Is there any fix for this?

1
  • 1
    just move the cursor where you like to have it afterwards – Christian Brabandt Apr 29 at 6:15
0

It works the way it works. In fact, all builtin commands behave consistently (the last line in range is chosen whenever Vim needs to choose). If you need other functionality just make a mapping.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.