Background:I can pipe a paragraph through an external command using !ip and the cursor goes to the end of the following prompt::.,.+5!If I want to use the built-in sort or center functions I could specify the line numbers manually, but I have relative numbers so I would need to count or use visual mode. So currently I use, for example, !ip<backspace>sort or !2}<backspace>center. This gives me the flexibility to use any kind of range for the command, and I can run it from anywhere inside the range.Question:Is there a way I could do something similar to !<range> but ending up without the ! at the end of the prompt, that I then need to delete? Something like <foo>ipsort to end up with :.,.+6sort.
Prepare a range for an ex command without visual mode or line numbers
cursor motions;ex mode