How does P works?
The best way to think of P is to see it like the writing version of T. It’s a bit like X, but you don’t need to manage the locking of cells, like how T is like O but locking a series of cells.
.........................................
..................................2C4....
.#.READ.#........................2M1.....
................................lV2......
.C8...........Cg...........Vl............
.20O01234567..a8T01234567..202Q01234567..
...2............2............23..........
.........................................
.#.WRITE.#...............................
.........................................
.C8.C8........Cg.C8........Vl............
.20X2.........a8P2.........202G01........
...01234567.....01234567......01010101...
.........................................
So, instead of:
C.3U.......
4.X........
.#*..*..*.#
The more flexible way to record a series of bangs is to do:
C.3U.......
18P........
..*..*..*..
With this second way, you don’t need to manually extend the positions of the comments when changing the length of the segment.