Given the following file12345When I say :1m3the file looks like this23145But when I say :3m1 it looks like this13245I thought the 3 should be before 1. Why is it like this?
Why in vim is the first operand in move (m) 1-based and the last operand 0-based?
vim
As Stphane Chazelas pointed out by using the vim help with :h :m it states the following::[range]m[ove] {address}                        *:m* *:mo* *:move* *E134*                    Move the lines given by [range] to below the line                    given by {address}.Therefore by moving line 1 below line 3 the result is as stated in the question.But if one wanted to move line 3 to the first line it has to be moved below line 0