I would prefer to create a new statement, for example x in standby mode:
onoremap x :norm! g0vg$<cr> xnoremap xg$og0o
On the first display, dx will delete the line of the screen, yx will stretch the line of the screen (be careful, it will not be inserted into the line, but it will be symbolic), cx will delete the line of the screen and begin to insert the mode, etc.
On the second display, x in visual mode will expand the screen lines with visual selection.
I would not advise reassigning dd, because it can break plugins (if they use :normal instead of :normal! Or if they use :×××noremap :×××map instead :×××noremap .
source share