:help :y
says:
:[range]y[ank] [x] Yank [range] lines [into register x]. Yanking to the
"* or "+ registers is possible only when the
|+clipboard| feature is included.
so your answer is obviously:
:51,116y +
Your problem is that you try to use :y
, the Ex command, as if it was y
, the normal mode command.