Enter the text by typing Istring[Esc]
:set ruler
Yank the text into a buffer with "*y available on the gvim menu. Move to where you would like to paste and use "*p to paste the selection. Note both commands begin with a double quote.
"*G
Can be used only in gvim. This could also be turned into a handy menu item.
!sortIn gvim simply select the block and enter the pipe command. In vim enter visual block mode with CTRL-V, define the block with movement keys and then enter the pipe command.
Example removes all lines that begin with $HM
:g/^\$HM/d d