Say I've executed the command:
:g/^.\{1,50\}$/m$
to move all lines with 50 or less characters to the bottom of the file.
Then I realise I actually didn't want to do that for the whole file, but for example a paragraph (or for any visually selected lines). I then do u
and vip
to select the paragraph I want the g
command to affect, I press :
, and try to press <UP>
to get the previous command, problem is that there are only commands I've done when I've been in visual mode.
How should I do this, so that I don't have to type the whole g
command again for the visual selection?