This is a slightly confused quesrion.
Could I do this -
2023 - open an ISA, stick in 20000, then leave it there
2024 - open an ISA, stick in 20000 then leave it there - and so on.
Yes.
Normally you get a better rate by picking the best rate each year and both paying in the new money and transferring the existing ISA to that. But if, for example, the first ISA is a 2- or 3- year fix you can leave it there and open a new one in year 2.
If I can do that, have I lost that ability by transferring last years into a new one in April?
No.
But - this is where your question gets confusing. You cannot both leave the money where it is and transfer it. Unlike a PP, I didn't think partial transfers were allowed but they may be possible under the new rules so you'd need to check that.
ISA Summary.
You have a £20k ISA allowance per tax year.
You can split this between a LISA, cash ISA and stocks and shares ISA, or put it all in one type.
You can, as of last year, open and pay into as many ISAs during the year as you like, provided you don't exceed the £20k total.
Thr limit is on money paid in during the year. Transfers are ignored completely, provided you do them as a transfer, not by withdrawing the money and then paying it back in.
A flexible ISA does allow you to withdraw money and pay it back without affecting the £20k limit- but only in the same accoint and within the same tax year. If you put in £20k at the start of the year, take out £10k now and put it back in next week you haven't exceeded the £20k; bit if you take out £10k now and put it back in next May, you use up £10k of next year's allowance.