:.! actually passes the current line through an external command, possibly losing the line. You can use :r !<command> - Note the space before ! . I often use :0r !cmd so that the output is inserted at the beginning of the buffer.
bobbogo
source share